VBA Query that references a reserved word in one of the field names.

  • Thread starter Thread starter Simboti
  • Start date Start date
S

Simboti

I am extracting data from Pervasive 9.1 using Excel VBA. I want to avoid
using "SELECT * FROM TABLE1". Instead, I want to select specific field names.
However, one of the field names is "DESC" which is a reserved word in
Pervasive 9.1.
 
Simboti

Not familiar with pervasive but normally you can enclose reserved words in
brackets [ ] or prefix with the table name Tablename!Desc or possibly even
both [Tablename]![Desc], lastly, perhaps single quotes "'Desc'"

Just some thoughts

--

HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(e-mail address removed)
web: www.nickhodge.co.uk
blog (non tech): www.nickhodge.co.uk/blog
 
Back
Top