Having a problem with UPDATE and INSERT command.
Have database with fields named ID, Serial, By, Date
SQL Update Command:
UPDATE Transactions SET Serial="1234",By="Lee",Date="11/01/2009" WHERE ID=2101
Command fails due to improper syntax.
Traced it to fields "BY" and "DATE"
If I modify Database field Names to "sBY" and "sDATE" and change SQL accordingly it works fine.
Is there a way to use BY and DATE as field names?
Any help would be appreciated.
Lee
Have database with fields named ID, Serial, By, Date
SQL Update Command:
UPDATE Transactions SET Serial="1234",By="Lee",Date="11/01/2009" WHERE ID=2101
Command fails due to improper syntax.
Traced it to fields "BY" and "DATE"
If I modify Database field Names to "sBY" and "sDATE" and change SQL accordingly it works fine.
Is there a way to use BY and DATE as field names?
Any help would be appreciated.
Lee