Help getting sql syntax correct

beatleman

Registered User.
Local time
Today, 17:30
Joined
Mar 28, 2007
Messages
21
Hello, just need some help correcting the syntax with the below. Vend is the name of my input textbox on my form, but the value entered will not copy into my table 'Notsent' Can anyone spot why? Thanks.

db.Execute " INSERT INTO Notsent " _
& "(Vendors) VALUES " _
& "('&Vend');"
dbs.Close
 
db.Execute " INSERT INTO Notsent " _
& "(Vendors) VALUES " _
& "('" & Me.Vend & "');"
 
re:

Thankyou. Worked great
 

Users who are viewing this thread

Back
Top Bottom