Disasterpiece
Well-known member
Hi again its me,
My teacher is horrible in that she has barely touched on DB syntax yet she wants us to do all of this crazy advanced stuff. Anyway, what is the syntax for retrieving a value thats in the last row of a DB.
What I need to do is go to the last row of a Transactions table and retrieve the value of the Ending balance field for a specific user.
I think my sql string would be something like "SELECT * FROM Transactions WHERE Username=" & strUsername
That would allow me to get the rows for only the username entered. Is it possible to then go to the last row entered by that user assuming an autonumber as the primary key, so I can then retrieve the ending balance?
I will need the ending balance when the form loads so I can output it to a label.
Thanks
Disasterpiece
My teacher is horrible in that she has barely touched on DB syntax yet she wants us to do all of this crazy advanced stuff. Anyway, what is the syntax for retrieving a value thats in the last row of a DB.
What I need to do is go to the last row of a Transactions table and retrieve the value of the Ending balance field for a specific user.
I think my sql string would be something like "SELECT * FROM Transactions WHERE Username=" & strUsername
That would allow me to get the rows for only the username entered. Is it possible to then go to the last row entered by that user assuming an autonumber as the primary key, so I can then retrieve the ending balance?
I will need the ending balance when the form loads so I can output it to a label.
Thanks
Disasterpiece