Fireman1143
IS-IT--Management
With the following code I get a message of "too few parameters expecting 1" and also at another section it says I have one too many )
sql="SELECT * FROM tblInput WHERE (((month([InputDate])) = " & f!month &" AND ((Year([InputDate])) = " & f!year & "0" &' And ((EmployeeID) = " & f!EmployeeID & "
)) ORDER BY InputDate;"
Set db = CurrentDB()
Set rs = db.OpenRecordset(sql, dbOpenSnapshot)
As I am just beginning using VB I am not sure of the proper syntax of OpenRecordset.
Fireman1143
sql="SELECT * FROM tblInput WHERE (((month([InputDate])) = " & f!month &" AND ((Year([InputDate])) = " & f!year & "0" &' And ((EmployeeID) = " & f!EmployeeID & "
Set db = CurrentDB()
Set rs = db.OpenRecordset(sql, dbOpenSnapshot)
As I am just beginning using VB I am not sure of the proper syntax of OpenRecordset.
Fireman1143