chewy
SuperNintendo Chalmers
- Local time
- Today, 04:03
- Joined
- Mar 8, 2002
- Messages
- 581
I have this code
Private Sub Command4_Click()
'between 1/1/2003 AND 1/1/04
Dim myDate As Variant
myDate = "BETWEEN "
myDate = myDate & Me.StartDate
myDate = myDate & " AND "
myDate = myDate & Me.EndDate
FullDate.SetFocus
Me.FullDate.Text = myDate
DoCmd.OpenQuery "qryMain", acViewNormal
'DoCmd.Close acQuery, "qryMain"
'DoCmd.OpenReport "ComboBox2", acViewPreview
End Sub
On this line
DoCmd.OpenQuery "qryMain", acViewNormal
It give me the Error You Cancelled the Previous Operation. What is causing this to happen.
I also am having a query read from the text box what the value of the query will be. See Attached. Thanks for any ideas!
Private Sub Command4_Click()
'between 1/1/2003 AND 1/1/04
Dim myDate As Variant
myDate = "BETWEEN "
myDate = myDate & Me.StartDate
myDate = myDate & " AND "
myDate = myDate & Me.EndDate
FullDate.SetFocus
Me.FullDate.Text = myDate
DoCmd.OpenQuery "qryMain", acViewNormal
'DoCmd.Close acQuery, "qryMain"
'DoCmd.OpenReport "ComboBox2", acViewPreview
End Sub
On this line
DoCmd.OpenQuery "qryMain", acViewNormal
It give me the Error You Cancelled the Previous Operation. What is causing this to happen.
I also am having a query read from the text box what the value of the query will be. See Attached. Thanks for any ideas!