hello
i am trying to write a stored procedure that add a new row to a table, this part i can do using INSERT.
I then want to access the ID for the row i have just add, which is the primary key for the table and produced by a auto number. I will then use this value combined with a string to produce a report number which i will put back in a field in the row i just added, and i also need to pass this new value out the procedure.
How do i get the id of the new row from within the stored procedure that just created it
How do i add the new value in the new rows approtate field
How do i pass the new report number out the procedure could i use the return statment with the varible that holds the value.