Solved

INSERT INTO: sql and database question

Posted on 1998-10-07
1
202 Views
Last Modified: 2010-04-30
I want to add user entered data to a database.
db begin my database I am trying to insert values into the database that the user enters in Text1.Text and Text2.Text

db.Execute "INSERT INTO Options ([JobCode],[JobCodeDescription]) VALUES (Text1.Text,Text2.Text)"

The above doesn't work.  How can I get it to work for me.
0
Comment
Question by:movieguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 14

Accepted Solution

by:
waty earned 50 total points
ID: 1438576
do as follow :

sSQL = "INSERT INTO Options ([JobCode],[JobCodeDescription]) "
sSQL = sSQL & "VALUES ('" & Text1.Text & "', '" & Text2.Text & "') " 

db.Execute
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question