RufussMcGee
Technical User
Known facts..
Table called tblDataLOG inside this table have the following Customer Name, FollowUP and description.
Query called qrySearch inside the query under the followup field am using the following parameter '>[Beginning Date] And <[ending date]'
Forms called frmSearchDate with two date boxes and one preview button with the following code for preview button.
Private Sub Preview_Click()
If IsNull([Beginning Date]) Or IsNull([Ending Date]) Then
msgbox "You must enter both beginning and ending dates."
DoCmd.GoToControl "Beginning Date"
Else
If [Beginning Date] > [Ending Date] Then
msgbox "Ending date must be greater than Beginning date."
DoCmd.GoToControl "Beginning Date"
Else
Me.Visible = False
End If
End If
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "qrySearch"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
The thing that I do not understand is how to tie the form frmSearchDate to the qrySearch and then pass all the infomation another another form called frmSearchResults.
In Summary all I am trying to do is prompt the user to enter a start and ending date for a search and give up a form that shows the results.
Thanks.
Table called tblDataLOG inside this table have the following Customer Name, FollowUP and description.
Query called qrySearch inside the query under the followup field am using the following parameter '>[Beginning Date] And <[ending date]'
Forms called frmSearchDate with two date boxes and one preview button with the following code for preview button.
Private Sub Preview_Click()
If IsNull([Beginning Date]) Or IsNull([Ending Date]) Then
msgbox "You must enter both beginning and ending dates."
DoCmd.GoToControl "Beginning Date"
Else
If [Beginning Date] > [Ending Date] Then
msgbox "Ending date must be greater than Beginning date."
DoCmd.GoToControl "Beginning Date"
Else
Me.Visible = False
End If
End If
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "qrySearch"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
The thing that I do not understand is how to tie the form frmSearchDate to the qrySearch and then pass all the infomation another another form called frmSearchResults.
In Summary all I am trying to do is prompt the user to enter a start and ending date for a search and give up a form that shows the results.
Thanks.