I'm starting to try out some VBA that I haven't used before, for processing some records. But I'm getting a Run-time error '91' (Object variable or With block variable not set) error message. I've tried to resolve the problem by searching around on the www and by altering the code in various ways, but I'm not getting anywhere with it.
I've attached the very simple (one Table; one Query; one Form; one Module) database I'm currently experimenting with, in case anyone can take a look and spot where I'm going wrong. Might it be a problem in the References ? I'm using :
Visual Basic for Applications
Microsoft Access 16.0 Object Library
Microsoft DAO 3.6 Object Library
OLE Automation
Microsoft ActiveX Data Objects 6.0 Library
Microsoft Outlook 14.0 Object Library
Microsoft Scripting Runtime
Any guidance greatly appreciated. Thanks
EDIT : Meant to post in 'Modules & VBA'
I've attached the very simple (one Table; one Query; one Form; one Module) database I'm currently experimenting with, in case anyone can take a look and spot where I'm going wrong. Might it be a problem in the References ? I'm using :
Visual Basic for Applications
Microsoft Access 16.0 Object Library
Microsoft DAO 3.6 Object Library
OLE Automation
Microsoft ActiveX Data Objects 6.0 Library
Microsoft Outlook 14.0 Object Library
Microsoft Scripting Runtime
Any guidance greatly appreciated. Thanks
EDIT : Meant to post in 'Modules & VBA'