I'm attempting to add a record to a table. My code looks like this:
recordset.AddNew
EITHER
recordset("Acct #" = '123'
OR
![Acct #] = '123'
recordset.UpdateBatch
Error msg I get is: The INSERT INTO statement contains the following unknown field name: 'Acct #'.
It appears that the single space & the pound sign character in the field name are bombing ADO. Any way around this other than renaming the field in the database (which I cannot do)? As a test, when I change the field name in the table to [Acct], the insert works perfectly, but that is NOT an alternative open to me.
MUCHO THANKSO for any assistance!
recordset.AddNew
EITHER
recordset("Acct #" = '123'
OR
![Acct #] = '123'
recordset.UpdateBatch
Error msg I get is: The INSERT INTO statement contains the following unknown field name: 'Acct #'.
It appears that the single space & the pound sign character in the field name are bombing ADO. Any way around this other than renaming the field in the database (which I cannot do)? As a test, when I change the field name in the table to [Acct], the insert works perfectly, but that is NOT an alternative open to me.
MUCHO THANKSO for any assistance!