views:

310

answers:

2

Hi,

Im having problems retrieving a field from my ms-access database.

The table name is TEST and one of the field's name is HD-TEST

When i do:

SELECT * from TEST where TEST.HD-TEST='H' and i execute the query, ms-access shows me a dialog expecting the parameter HD.

Do you know what could be the reason?

Thanks a lot. Kind Regards. Josema.

+5  A: 

Try to add brackets to the begin and the end of the column name (not tested, but works in SQL Server):

SELECT * from TEST where TEST.[HD-TEST]='H'
Zaagmans
A: 

Thanks a lot Zaagmans. Kind Regards. Josema.

Josemalive
You are welcome! Don't want to be rude, but commenting would have been better since your message is not an answer... ;-)
Zaagmans