Hi all,
i am running some sql code that inserts records into my table from a form. I first create a record which is the header, i then want to add some records to the lines table using the unique id created in the header.
I'm sure it must be possible, can anyone help/provide an example.
Here's what i've got i just need the last line...
thanks.
i am running some sql code that inserts records into my table from a form. I first create a record which is the header, i then want to add some records to the lines table using the unique id created in the header.
I'm sure it must be possible, can anyone help/provide an example.
Here's what i've got i just need the last line...
Code:
sql = "insert into tbl_PIR_Header (orderNo,reasonCode, customer, date, createdBy) " & _
"values ('" & ord & "','" & rc & "','" & cus & "','" & dt & "','" & user & "')"
[COLOR="Red"]"GET THE LAST ID HERE...[/COLOR]
thanks.