I'm trying to use the Macro utility in access to run an append query if the ID key in the Parent data table is larger than the ID key in the child table, named 'Hoover Data' and 'Hoover Match' respectively.
My Macro has the following objects:
SetWarnings, No
If Max([Hoover Data]![ID])>Max([Hoovers Match]![ID])
OpenQuery, 'Hoovers Match Update'
CloseWindow, 'Hoovers Match Update'
SetWarnings, Yes
My query, "Hoovers Match Update" runs fine and so does my Macro before I added the if statement -- that is to say that despite the shorthand writing of the above macro configuration is is correct.
When I run the macro with the if statement I receive the following error: Access Cannot find the name 'Hoover Data' you've entered in the expression
I'm running Access 2013 (32bit) on a Win 7 (64 bit) Machine
Thank you in advance for your support, -E
Aucun commentaire:
Enregistrer un commentaire