merlynsdad
Programmer
I'm using VBA and SQL to input data from a form into a table using autonumber as the primary. I then need to retrieve the autonumber of the row just entered into another form. I'm getting a number, but it's the number of the beginning row in the table, not the one just entered. What's the SQL statement to retrieve the most recent row? And should I put the code in the form load event, or is there a better place?
If the square peg won't fit in the round hole, sand off the corners.
If the square peg won't fit in the round hole, sand off the corners.