In my code, I am first inserting some form inputs into one DB table, table A. That works just fine.
There is an auto incrementing cID column of type int in table A which increments by 1 with each entry.
Once the form inputs are entered into A, I want to then get the cID value for that entry and save it as a dim.
How would I go about doing that?
I thought about doing -
dim latest
set latest = dbConn.execute("select @@identity from A")
but that does not work.
What should I do to get the cID for the submission that was just entered and store it in dim latest?
I tried looking at other stackoverflow posts they weren't of much help. If you find something that may help me or know what I should do, please let me know.
Thanks