What I have so far is:
Expand|Select|Wrap|Line Numbers
- Set cnn = CurrentProject.Connection
- Set rstVali = New ADODB.Recordset
- With rstVali
- .Open "SELECT Max(AllTransactionData.[Transaction Period]) AS [MaxOfTransaction Period] from AllTransactionData", cnn, adOpenForwardOnly, adLockReadOnly
- End With
Now what I'm not sure how to do is refer to this in the code.
My aim being is that I'm writing a search function that will find x amount of months worth of data from the most recent piece of data backwards. I can get it running from todays month/year but the data may not always be as up to date as that. I need it to run from where it is up to so far.
Thanks for helping me though my various headaches guys!
Si->