Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 97 field named group -> cannot query!!

Status
Not open for further replies.

ribayah

Programmer
Apr 3, 2001
14
FR
Hi,

I have a table which contains a field named 'Group'. I do an insert query through ODBC like this :

INSERT INTO Requests (Group, Department) VALUES ('CAG', 'ITS')

MS Jet refuses this query because of the Group field name. It seems that Jet recognize this as the GROUP BY keyword!

How to bypass that!

Thank You!
 
Try putting some quotes around the fieldname, eg

INSERT INTO Requests (""Group"", Department) VALUES ('CAG', 'ITS')

alternatively if it is being run against a client/server DB, turn it into a pass through query, then you end up doing battle with the back end engine and Jet will not attempt to interpret it.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top