ADP front end, SQL Server backend.
On my main form, I need to pull up in a select query in values from a record I am in the process of adding, before SQL Server actually saves the record to give me the Primary Key ID, which is autoincrement. I've tried docmd.runcomman d accmdsaverecord , but it is giving me this:
Run-time error '7874':
Access can't find the object 'SELECT ((0)) AS Column1, ((0)) AS Column2,((0)) AS Column3,((0)) AS Column4,((0)) AS Column5,((0)) AS Column6,((0)) AS Column7.'
I'm not sure where this select statement is coming from, but I get this error in multiple places where I'm trying to save the record in VBA.
What's going on? Is there another way to save a record in VBA other than this?
Help! I'm running out of steam and have a deadline.
On my main form, I need to pull up in a select query in values from a record I am in the process of adding, before SQL Server actually saves the record to give me the Primary Key ID, which is autoincrement. I've tried docmd.runcomman d accmdsaverecord , but it is giving me this:
Run-time error '7874':
Access can't find the object 'SELECT ((0)) AS Column1, ((0)) AS Column2,((0)) AS Column3,((0)) AS Column4,((0)) AS Column5,((0)) AS Column6,((0)) AS Column7.'
I'm not sure where this select statement is coming from, but I get this error in multiple places where I'm trying to save the record in VBA.
What's going on? Is there another way to save a record in VBA other than this?
Help! I'm running out of steam and have a deadline.
Comment