J
JoeBurmeister
Some programmer before me created an ACCESS database with a column
called 'Date' (original huh?) to insert date in 'short date' format.
I wrote a VB code to insert data into this database but my INSERT fails
(states Syntax Error in INSERT INTO) due to the fact that I am trying
to address a column call 'Date'. If I change this column name in ACCESS
to 'Datexxx' - the VB INSERT statement works fine.
sqlText = "INSERT INTO detail_log (date,name,map_ref,
account_number,cutoff, cycle,signal_codes) VALUES ( '" & Now & "','" &
COName & "','" & COLoc & "','" & MbrSep & "','" & CONbr & "','" & cycle
& "','" & 5 & "')"
How can I get around this problem without resorting to changing the
ACCESS database column name to something other then 'date' (the
database is heavily referenced by other programs so changing the
structure is out of the question).
called 'Date' (original huh?) to insert date in 'short date' format.
I wrote a VB code to insert data into this database but my INSERT fails
(states Syntax Error in INSERT INTO) due to the fact that I am trying
to address a column call 'Date'. If I change this column name in ACCESS
to 'Datexxx' - the VB INSERT statement works fine.
sqlText = "INSERT INTO detail_log (date,name,map_ref,
account_number,cutoff, cycle,signal_codes) VALUES ( '" & Now & "','" &
COName & "','" & COLoc & "','" & MbrSep & "','" & CONbr & "','" & cycle
& "','" & 5 & "')"
How can I get around this problem without resorting to changing the
ACCESS database column name to something other then 'date' (the
database is heavily referenced by other programs so changing the
structure is out of the question).