473,386 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Easy SQL Question

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','1234567 890','t***@test.com','TEST')

Sincerely,
Ryan Smith
Nov 19 '05 #1
4 1003
TJS
try omitting fields, one at a time, until you find the problem

"Ryan Smith" <Ry*******@discussions.microsoft.com> wrote in message
news:F8**********************************@microsof t.com...
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','1234567 890','t***@test.com','TEST')

Sincerely,
Ryan Smith

Nov 19 '05 #2
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.

--
2004 and 2005 Microsoft MVP C#
Robbe Morris
http://www.robbemorris.com
http://www.masterado.net/home/listings.aspx

"Ryan Smith" <Ry*******@discussions.microsoft.com> wrote in message
news:F8**********************************@microsof t.com...
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','1234567 890','t***@test.com','TEST')

Sincerely,
Ryan Smith

Nov 19 '05 #3
Is your zip column int or number? If so then make '32804' 32804.

"Ryan Smith" wrote:
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','1234567 890','t***@test.com','TEST')

Sincerely,
Ryan Smith

Nov 19 '05 #4
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' )
Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: rdsteph | last post by:
I am having a lot of fun using the pyGoogle module ( http://pygoogle.sourceforge.net/ ) that uses the Google API. It is about as easy to use as I can imagine, and it is a lot nicer than using my...
5
by: LedZep | last post by:
What up, All I need to do is enter a last name in a text box, query a MSAccess database and display the name with the corresponding columns. This is no problem, but when there are more than one...
13
by: Ghislain Tanguay | last post by:
I have a compiled vb.net app and I want to give the user a choice to launch it from the start line command and pass it a parameter or not. How can I do that in my code? Is it possible? Ex. :...
1
by: melanieab | last post by:
Hi, If there's a textbox and the text entered is longer than what's visible (the textbox length), how do you make it so that the beginning chunk of text is visible (instead of the last part of...
6
by: Martin Bootsma | last post by:
I have a C question, which looks very easy, but no one here seems to know an easy answer. I have a function "powell" (from Numerical Recipes) which takes an argument of the type "double...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.