insert entry into database

habbabub

Registered User.
Local time
Today, 04:28
Joined
Jan 24, 2008
Messages
73
Hi there,
how can i manually insert data from a text box into a table using vb?

i assume it involes the "insert" command?
 
Two ways offhand, either executing SQL ("INSERT INTO..."), or using the AddNew method of an ADO or DAO recordset.
 
how can that be done?
do you have an example of useing that method?

i have tryed
a = "insert id ...."
a.requery

but thats me guessing!
 
Generally,

a = "insert id ...."
CurrentDb.Execute a

Look in Help for the proper syntax of an append query, and at the Execute method.
 

Users who are viewing this thread

Back
Top Bottom