Hello,
Can u help me please with the following problem?
A want to use "between" in a filter with 2 dates.Here is the code:
Private Sub Submit_Click()
Dim str As String
str = "Total_sampling.Statusenddate between #"&Me.Data1&"# AND #"&Me.Data2&"#"
DoCmd.OpenForm "Total_sampling", acFormDS, , str
End Sub
I recive the error Expected: end of statement
Tks a lot,
Adrian
Can u help me please with the following problem?
A want to use "between" in a filter with 2 dates.Here is the code:
Private Sub Submit_Click()
Dim str As String
str = "Total_sampling.Statusenddate between #"&Me.Data1&"# AND #"&Me.Data2&"#"
DoCmd.OpenForm "Total_sampling", acFormDS, , str
End Sub
I recive the error Expected: end of statement
Tks a lot,
Adrian