I am using vb6 to control a sqlServer database and need a little help.
I use a form to gather information about part inspections. The form has general information about the inspection (date/time, inspector, location, etc...) and the more specific information about the individual line items (part number, pass/fail, failure mode, etc...).
The general inspection info is in tblInspection.
The more specific info is in tblInspection_Detail.
When I enter a new record into tblInspection - How do I know the Record_ID (the indexing primary key) for the record I just added?
I need to retain the new Record_ID value so that I can use it to identify what inspection each line item is associated with.
I'm sure this is a pretty easy one, but I am at a loss right now.
Many thanks,
Alex