Re: Used a reserved word in a field name.....



Jon Purvis beat me to it--I don't get any error with your commandtext when using D2007 against either an Access 2002 or Access 2007 database. But if you need something else to try, this syntax is acceptable to JET:

SELECT * FROM containers WHERE [containers]![number] > 10



Ian Groves wrote:
I have a MS Access Database and use TADODataset.commandtext and use a JET connection to run....

SELECT * FROM Containers WHERE Number > 10

Of course this fails as I have used the field name NUMBER, aside from restructing the table and my app how can i get around this?
.



Relevant Pages