using keyword as SQL query value

R

RickBeddoe

I query a field with the value "current". However "Current" is a keyword and
Access gives an error.

example:

....

WHERE [data]![status] = "current"

I remember there was a prefix or some other character I could put in front
of this in order for it to work, but I don't remember what it was.

Thanks,

Rick
 
J

Jerry Whittle

That should not give you an error due to it being a keyword. What precisely
is the error number and message. Also please post the entire SQL statment.

Actually according to MS, current isn't listed as one of the reserved words.
I'm assuming by keyword and reserved word, that we are talking about the same
thing.

http://support.microsoft.com/kb/286335/
 
R

RickBeddoe

RickBeddoe said:
I query a field with the value "current". However "Current" is a keyword and
Access gives an error.

example:

...

WHERE [data]![status] = "current"

I remember there was a prefix or some other character I could put in front
of this in order for it to work, but I don't remember what it was.

Thanks,

Rick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top