Easy SQL Question

G

Guest

I'm getting a syntax error on the following SQL Statement. Can anybody see
something wrong here that I can't. All of the data fields are type text and
i'm using Jet 4.0 to connect to an Access 2000 backend.

INSERT INTO
Users(FNAME,LNAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,PHONE,FAX,EMAIL,PASSWORD)
Values ('Suzie','Smith','123 main st','Suite
2108','Orlando','fl','32804','1234567890','1234567890','(e-mail address removed)','TEST')

Sincerely,
Ryan Smith
 
R

Robbe Morris [C# MVP]

Are you sure PASSWORD isn't a reserved word in Access?

If any of your columns are numbers, they don't need ' around the
values.
 
G

Guest

Copy the below text exacly as is and execute

INSERT INTO Users ( FNAME, LNAME, ADDRESS1, ADDRESS2, CITY, STATE, ZIP,
PHONE, FAX, EMAIL, PASSWORD ) Values ( '1', '1', '1', '1', '1', '1', '1',
'1', '1' ,'1', '1' )
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top