Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access thread: INSERT INTO with a date


Message #1 by "Olivier Hamel" <hamel_olivier@h...> on Wed, 22 Jan 2003 17:57:28
"INSERT INTO T_SERVICE_DETAILS
(AUTO_SERVICE,ID_MLST,ID_ACT,ID_DEL,ID_RESSOURCE,ID_STATUS,DATE,ASSIGN_TO) 
VALUES(" & _
             Me.AUTO_SERVICE.Text & "," & _
             "'" & RS.Fields("ID_MLST").Value & "'," & _
             "'" & RS.Fields("ID_DEL").Value & "'," & _
             "'" & RS.Fields("ID_ACT").Value & "'," & _
             "'ZITOUNE','ZITOUNE',2002/12/12,1);"

This is my code.
It's giving an error. ( Error in INSERT INTO 3134 )
I think it's coming from the date but can't find why ?
Message #2 by amy.bender@p... on Wed, 22 Jan 2003 18:19:20
Try...

>             "'ZITOUNE','ZITOUNE',#2002/12/12#,1);"
Message #3 by "Olivier Hamel" <hamel_olivier@h...> on Wed, 22 Jan 2003 18:21:27
> Try...

> >             "'ZITOUNE','ZITOUNE',#2002/12/12#,1);"

lol
I did this to and i's still not working :-(
Message #4 by "Haslett, Andrew" <andrew.haslett@i...> on Fri, 24 Jan 2003 10:08:44 +1030
DATE is a reserved word.

Either rename the field (best option) or surround DATE with []

"INSERT INTO ....., [Date], ....."

Cheers,
Andrew

-----Original Message-----
From: Olivier Hamel [mailto:hamel_olivier@h...]
Sent: Thursday, 23 January 2003 4:27 AM
To: Access
Subject: [access] INSERT INTO with a date


"INSERT INTO T_SERVICE_DETAILS
(AUTO_SERVICE,ID_MLST,ID_ACT,ID_DEL,ID_RESSOURCE,ID_STATUS,DATE,ASSIGN_TO) 
VALUES(" & _
             Me.AUTO_SERVICE.Text & "," & _
             "'" & RS.Fields("ID_MLST").Value & "'," & _
             "'" & RS.Fields("ID_DEL").Value & "'," & _
             "'" & RS.Fields("ID_ACT").Value & "'," & _
             "'ZITOUNE','ZITOUNE',2002/12/12,1);"

This is my code.
It's giving an error. ( Error in INSERT INTO 3134 )
I think it's coming from the date but can't find why ?

IMPORTANT - PLEASE READ ******************** 
This email and any files transmitted with it are confidential and may 
contain information protected by law from disclosure. 
If you have received this message in error, please notify the sender 
immediately and delete this email from your system. 
No warranty is given that this email or files, if attached to this 
email, are free from computer viruses or other defects. They 
are provided on the basis the user assumes all responsibility for 
loss, damage or consequence resulting directly or indirectly from 
their use, whether caused by the negligence of the sender or not.

  Return to Index