Setup: I have an .asp page with a form that submits data to an Access database. When the submit button is clicked, the data is entered into the db and the user is automatically sent to a "Thank you" page.
On the "Thank you" page, I have dynamic text set up to autopull the primary key autonumber and display it (in essance, I will use this number as the trouble ticket number).
Problem: I can get it to display the autonumber with no problems, but it shows the first number in that field. I need it to show the last number, or the one that was just created when the user clicked submit.
I've created a recordset that uses just the ID field and then I've created a dynamic text in the server behaviors linking it to the ID field in the recordset (the string for this is <%=(Recordset1.Fields.Item("ID").Value)%>).
Anyone have any ideas on how to get it to pull the correct number?
Thanks in advance for any time put into this question.
On the "Thank you" page, I have dynamic text set up to autopull the primary key autonumber and display it (in essance, I will use this number as the trouble ticket number).
Problem: I can get it to display the autonumber with no problems, but it shows the first number in that field. I need it to show the last number, or the one that was just created when the user clicked submit.
I've created a recordset that uses just the ID field and then I've created a dynamic text in the server behaviors linking it to the ID field in the recordset (the string for this is <%=(Recordset1.Fields.Item("ID").Value)%>).
Anyone have any ideas on how to get it to pull the correct number?
Thanks in advance for any time put into this question.