i have been trying to write a search code for a similar database, and i followed all the steps that were provided above, and my code was close to what lightning had but i have added date range in my search to search in between 2 dates, and i put this code in:
do you think that code is correct??
i am also having problems with the last step, where u do "DoCmd.Open Form "masterform ", , , strFilter"
i did that but i keep getting an error message, and when i go to debug this line is always highlighted.
i have a table called master form which has all my information, i made a form that is a duplicate to my master table in order for the last step to work, but i am not sure what is wrong.
Mary, i really hope you can help me with this, since you seem to be the only active member!!
i would appreciate any help on this.
Thanks
** Edit **
This post was a hijack of Search Form: multiple controls (Access 2003). I will split it across to its own thread. Please remember in future to create a new thread for your questions.
Code:
If Not IsNull(Me.date1) Then
strWhere = strWhere & "([Date] >= " & Format(Me.date1, conJetDate) & ") AND "
End If
If Not IsNull(Me.date2) Then
strWhere = strWhere & "([Date] < " & Format(Me.date2 + 1, conJetDate) & ") AND "
End If
i am also having problems with the last step, where u do "DoCmd.Open Form "masterform ", , , strFilter"
i did that but i keep getting an error message, and when i go to debug this line is always highlighted.
i have a table called master form which has all my information, i made a form that is a duplicate to my master table in order for the last step to work, but i am not sure what is wrong.
Mary, i really hope you can help me with this, since you seem to be the only active member!!
i would appreciate any help on this.
Thanks
** Edit **
This post was a hijack of Search Form: multiple controls (Access 2003). I will split it across to its own thread. Please remember in future to create a new thread for your questions.
Comment