matrixknow
IS-IT--Management
- May 3, 2007
- 78
Hallo,
If I type the parameter for the where condition hard coded, it works.
Because there are a number of parameters I get this by a recordset and a string. He does not give an error but he give back 0 records, it should be for C002 = 5
I looked at the value of strCode with a message box.
If I type the parameter for the where condition hard coded, it works.
Code:
& "WHERE ((([Tbl_HR Contacts].HRC_C)= ""C002""));"
Because there are a number of parameters I get this by a recordset and a string. He does not give an error but he give back 0 records, it should be for C002 = 5
I looked at the value of strCode with a message box.
Code:
Dim strCode As String
strCode = rst!HRC
& "WHERE ((([Tbl_HR Contacts].HRC)= " & strCode & "));"