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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Field name with # causes TDataSet Filter error

Status
Not open for further replies.

trollacious

Programmer
Sep 29, 2004
4,046
US
Just learning about database programming, and I ran across something I haven't been able to find anything that addresses this situation here or on Google. Several of the field names of existing databases (using BDE and Paradox drivers) have a pound sign # as a character.

When I try to set the TDataSet Filter property with a string containing the #, I get an error message. With a field named REC#, the error message is "Field REC cannot be found". If the Filter property strips off the #, how do I escape that character or otherwise overcome this?

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top