Hello,
I am new to ACCESS programming, but not to VB, I am familiar with Recordsets, and dealing with resultsets using ADO, but not with the inherent ACCESS commands.
Based on a button being pressed, I am trying to pass SQL to a database table with invoice data, (Dates and Value pairs) and then retrive the MAX Date, and based upon that date, create a new SQL statement and pass that value into a second QUERY.
Here is the problem I have,
ASSUME a basic SQL STATEMENT Like this:
"SELECT MAX(TBLINVOICE.DATE_INVOICE) as MAXDATE
FROM TBLINVOICE"
How do I retrieve the value from the first Query. MAXDATE, so that I can programically manipulate it?
I just need to see some code on how to retrieve the value from the result set.
Thanks
Steve
I am new to ACCESS programming, but not to VB, I am familiar with Recordsets, and dealing with resultsets using ADO, but not with the inherent ACCESS commands.
Based on a button being pressed, I am trying to pass SQL to a database table with invoice data, (Dates and Value pairs) and then retrive the MAX Date, and based upon that date, create a new SQL statement and pass that value into a second QUERY.
Here is the problem I have,
ASSUME a basic SQL STATEMENT Like this:
"SELECT MAX(TBLINVOICE.DATE_INVOICE) as MAXDATE
FROM TBLINVOICE"
How do I retrieve the value from the first Query. MAXDATE, so that I can programically manipulate it?
I just need to see some code on how to retrieve the value from the result set.
Thanks
Steve