Is user_id an autonumber? If so you can't reference that field on an
insert.
Is userid a string field? You are inserting text into this field
Is ClientID a numeric? You are inserting a number in this field.
If you sent the DB structure it would be easier to answer the question...
Howie
----- Original Message -----
From: Shawn Regan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 03, 2000 4:56 PM
Subject: OT: SQL! i'm losing it
> This message is in MIME format. Since your mail reader does not understand
> this format, some or all of this message may not be legible.
>
> ------_=_NextPart_001_01BFB542.15933410
> Content-Type: text/plain;
> charset="iso-8859-1"
>
> I have checked and checked this but I cannot see anything wrong with this
> code:
>
> <cfquery name="adduser" datasource="#DSN#">
> insert into users
> (user_id,Group,firstname,lastname,Title,email,Password,UserID,ClientID)
> values
>
(#max_ID#,'#trim(attributes.Group)#','#trim(attributes.firstname)#','#trim(a
>
ttributes.lastname)#','#trim(attributes.Title)#','#trim(attributes.email)#',
>
'#trim(attributes.Password)#','#trim(attributes.userid)#',#trim(attributes.C
> lientID)#)
> </cfquery>
>
> But I keep getting this error:
>
> ODBC Error Code = 37000 (Syntax error or access violation)
>
>
> [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO
> statement.
>
>
> SQL = "insert into users
> (user_id,Group,firstname,lastname,Title,email,Password,UserID,ClientID)
> values
>
(2,'External','Shawn','Regan','Webmaster','[EMAIL PROTECTED]','kick','597',2)"
>
> Anyone see what I am missing?
>
> Shawn Regan
>
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.