I am writing some code to seen if an import error table has been created.
When using the VBA editor in Access and I type in lowerrcase the following two statements
dim db as DAO.database
dim td as DAO.tabledef
it corrects it to
Dim db As DAO.Database
Dim td As DAO.TableDef
recognising the reserved words each time. However typing
Dim mydefs As DAO.TableDefs
is reverting to lowercase 'tabledefs' AND no subsequent code referring to 'mydefs' or any code with 'TableDefs' appears to be recognized or actioned.
This is happening regardless of whether I use 'DAO' or not.
Am I missing something or using the wrong syntax for tabledefs? Anybody else had the same problem?
Any help thankfully received.