Ok so while we are on a roll here perhaps you could point me in the right direction on the next stage.
I'm trying to use the SQL statement to open a recordset so i can grap values from the record with a date closest today.
The code is as follows:
I get runtime error 3061 too few parameters ????
I'm trying to use the SQL statement to open a recordset so i can grap values from the record with a date closest today.
The code is as follows:
Code:
Set ChargeRatesRecordSet = CurrentDb.OpenRecordset("Select TOP 1 VolunteerDisclosureTotal, StandardDisclosureTotal, EnchancedDisclosureTotal, POVAPOCADisclosureTotal, EnhancedPOVAPOCADisclosureTotal, ISARegOnlyTotal, EnhancedISARegTOTAL, DateAsOf FROM ChargeRates WHERE [DateAsOf] <= Date ORDER BY [DateAsOf] DESC;")
Comment