does anybody know what i am doing wrong in this code?
I am trying to filter an appointment and at first i thought everything worked fine until i saw yesterday that it only works with dates above 12 ??
Other dates work fine without any problem.
Private Sub cmdafspraakbewerken_Click()
frmSollicitantInterview.Show
With frmSollicitantInterview.Interview
.RecordSource = " select * from interview where sollicitantid = " & Interview.Recordset.Fields("sollicitantid") & _
"And Datum =# " & Interview.Recordset.Fields("datum") & " #" & _
"and uur =# " & Interview.Recordset.Fields("uur") & " #" & _
"and opdrachtid = " & Interview.Recordset.Fields("opdrachtid") & " "
.Refresh
End With
End Sub
first i thought it had something to do with the notation in my database and the one character date but when i change all this in database and in code with the format function it still doesn't work.
Any tips or help would be very appreciated
borracho
I am trying to filter an appointment and at first i thought everything worked fine until i saw yesterday that it only works with dates above 12 ??
Other dates work fine without any problem.
Private Sub cmdafspraakbewerken_Click()
frmSollicitantInterview.Show
With frmSollicitantInterview.Interview
.RecordSource = " select * from interview where sollicitantid = " & Interview.Recordset.Fields("sollicitantid") & _
"And Datum =# " & Interview.Recordset.Fields("datum") & " #" & _
"and uur =# " & Interview.Recordset.Fields("uur") & " #" & _
"and opdrachtid = " & Interview.Recordset.Fields("opdrachtid") & " "
.Refresh
End With
End Sub
first i thought it had something to do with the notation in my database and the one character date but when i change all this in database and in code with the format function it still doesn't work.
Any tips or help would be very appreciated
borracho