W
WilliamI
I have tried many syntax variation but still get 'runtime error 3601. too few
parameters. Expected 1' from the following code:
Private Sub AcctClass_AfterUpdate()
Dim db As Database, frm As Form
Dim rst As Recordset, strSQL As String
strSQL = "SELECT AcctClass.AcctClassN " & _
"FROM AcctClass " & _
"WHERE AcctClass.AcctClass=" & Forms!fdlgChartAccts_DE!AcctClass & "
;"
Set frm = Forms!fdlgChartAccts_DE
Set db = CurrentDb
Set rst = db.OpenRecordset(strSQL, dbOpenSnapshot)
frm!AcctClassN = rst!AcctClassN
rst.Close
End Sub
parameters. Expected 1' from the following code:
Private Sub AcctClass_AfterUpdate()
Dim db As Database, frm As Form
Dim rst As Recordset, strSQL As String
strSQL = "SELECT AcctClass.AcctClassN " & _
"FROM AcctClass " & _
"WHERE AcctClass.AcctClass=" & Forms!fdlgChartAccts_DE!AcctClass & "
;"
Set frm = Forms!fdlgChartAccts_DE
Set db = CurrentDb
Set rst = db.OpenRecordset(strSQL, dbOpenSnapshot)
frm!AcctClassN = rst!AcctClassN
rst.Close
End Sub