L
Lezzo
I have the following lines of code in a function.
Dim db As Database, rs As Recordset, strBody As String
Set db = CurrentDb()
Set rs = db.OpenRecordset("SELECT * FROM tblinvoices
WHERE [RecordID] = " & Forms!frmPrepLetter!LogNum)
The routine halts at the last line where with the
following error message: Too few parameters. Expected 1.
Does anyone sees what I'm doing wrong here?
TIA.
Dim db As Database, rs As Recordset, strBody As String
Set db = CurrentDb()
Set rs = db.OpenRecordset("SELECT * FROM tblinvoices
WHERE [RecordID] = " & Forms!frmPrepLetter!LogNum)
The routine halts at the last line where with the
following error message: Too few parameters. Expected 1.
Does anyone sees what I'm doing wrong here?
TIA.