Hi all,
I am using Access 2007 in Win XP.
I have a field named Date_for_resolu tion in a table. I am trying to make a button that opens a tabular (continuous) form I have created, and filter it to display only records from the table where Date_for_resolu tion is older than the current date.
I have the following code at the moment but it is giving me Run-time error 3464 - Data type mismatch in criteria expression.
I have also tried using
but experienced the same run-time error.
Can anyone spot what I am doing wrong here?
Many thanks for any suggestions!
I am using Access 2007 in Win XP.
I have a field named Date_for_resolu tion in a table. I am trying to make a button that opens a tabular (continuous) form I have created, and filter it to display only records from the table where Date_for_resolu tion is older than the current date.
I have the following code at the moment but it is giving me Run-time error 3464 - Data type mismatch in criteria expression.
Code:
Private Sub Button1_Click() frm_filter = "Date_for_resolution < '" & Date & "'" DoCmd.OpenForm "frmIssuesTabular", , , frm_filter End Sub
Code:
frm_filter = "DateValue(Date_for_resolution) < '" & Date & "'"
Can anyone spot what I am doing wrong here?
Many thanks for any suggestions!
Comment