Hi all.
Have a linking (or ref) table which has a dual primary key. Need to return the last primary key which was auto generated from the current connection in a selected table. This is in java. The database is in MS Access if that makes a difference. Sorry for the rushed description, but our team is working to a tight schedule.
Any links or suggestions would be gladly appreciated.
EDIT:
The database is populated using SQL. We enter the data for one form, but we do not know the auto generated number. Need to find out what this was so it can be entered into the ref table. We only know half the composite key, which is why we need the second one.
Edit:
Re the best answer so far (cant seem to comment). I get the following error... "Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException"
Any Advice?