I'm using an access database for my website and have been creating table adapters as per the Data Access tutorials.
However I can't work out how to return a new record's ID after inserting it since access won't accept multiple statements. I have a query in the tableadapter which inserts the new record with default values. Then plan would then be to get the ID of the new record and used that to update the related tables.
I've tried created a new query in the table adapter of SELECT ......IDENTITY as NEWID to return the most recent ID but this does not seem to work.
I have seen posts suggesting it can be done using a partial class but I can't see any that fit my situation and I'm still quite new to this.
Any help is much appreciated