Hi,
I have a database where I want to append data from a SharePoint list into my table. (done)
My problem is that once that is done, I want to run a second append query that inputs the AutoNumber Primary Key field created by the first query, and for all this to run automatically when the database is opened.
I am able to do the first query and the automation of running it when the DB is opened, but I am totally stuck on how to get the AutoNumber info - there may be multiple records to append.
Have just thought as I was typing this, of making a temp yes/no field in the first table, that the initial append query checks, then the second query could run if temp yes/no field is checked, then I would need a 3rd update query to uncheck the temp field - this seems pretty messy. Does anyone have a proper/better solution to this?
Thanks
I have a database where I want to append data from a SharePoint list into my table. (done)
My problem is that once that is done, I want to run a second append query that inputs the AutoNumber Primary Key field created by the first query, and for all this to run automatically when the database is opened.
I am able to do the first query and the automation of running it when the DB is opened, but I am totally stuck on how to get the AutoNumber info - there may be multiple records to append.
Have just thought as I was typing this, of making a temp yes/no field in the first table, that the initial append query checks, then the second query could run if temp yes/no field is checked, then I would need a 3rd update query to uncheck the temp field - this seems pretty messy. Does anyone have a proper/better solution to this?
Thanks