I am trying to retrieve a date value from the first row of a table using VBA. I have got as far as
but I can't work out how to retrieve the value contained in the first row of the table, can I use
and if so how do I combine the 2?
Code:
Dim RepDate as Date
RepDate = DLookup("ReportDate", "tblMain")
Code:
DoCmd.GoToRecord acDataTable, "tblMain", acGoTo, 1
Comment