Dim db As DAO.Database
Dim recSec1 As DAO.Recordset
Set db = CurrentDb()
Set recSec1 = db.OpenRecordset("qryTACC_RPT_Sec1")
The query runs fine, it askes for a date on a form that is open with a selected date in a textbox. But when I try to use the above code I get a "too few parameters. Expected 1" error.
I can't figure out why. Can anyone help?
Thanks!
Dim recSec1 As DAO.Recordset
Set db = CurrentDb()
Set recSec1 = db.OpenRecordset("qryTACC_RPT_Sec1")
The query runs fine, it askes for a date on a form that is open with a selected date in a textbox. But when I try to use the above code I get a "too few parameters. Expected 1" error.
I can't figure out why. Can anyone help?
Thanks!