G
Guest
Hi
I have another question
I have a from which uses a command button to load a report based upon the
catergery selected in a combo box. i want to add two things
1) If no catergory is selected it loads the report showing all catergorys
(Currently shows a message saying you must select)
2) I want to add a 2 text boxs to this form where the use can enter a date
range (Start Date and End Date)
So in all i need the command button to look t the combo box and the other
two text boxes. Is this possible.
I have inserted the current Event procedure for the Command Button as follows:
Private Sub Command7_Click()
If IsNull(Me.Combo8) Then
MsgBox "CHOOSE CATERGORY"
Else: DoCmd.OpenReport "Category", acPreview,
WHERECONDITION:="Catergory= '" & Me.Combo8 & "'"
End If
End Sub
Thanks
I have another question
I have a from which uses a command button to load a report based upon the
catergery selected in a combo box. i want to add two things
1) If no catergory is selected it loads the report showing all catergorys
(Currently shows a message saying you must select)
2) I want to add a 2 text boxs to this form where the use can enter a date
range (Start Date and End Date)
So in all i need the command button to look t the combo box and the other
two text boxes. Is this possible.
I have inserted the current Event procedure for the Command Button as follows:
Private Sub Command7_Click()
If IsNull(Me.Combo8) Then
MsgBox "CHOOSE CATERGORY"
Else: DoCmd.OpenReport "Category", acPreview,
WHERECONDITION:="Catergory= '" & Me.Combo8 & "'"
End If
End Sub
Thanks