H
Hong
Hi, I created a parameter form for report.
The parameter form: frmSupplier
1.Combo box: supplier - cboSupplier
2.Command button: OK.
Code: private sub OK-Click()
Me.Visible = False
End Sub
3.Command button: Cancel
Code: private sub Cancel-Click()
DoCmd.Close 'Close Form
End Sub
When I click OK, it's runs the report.
But when I click on the Cancel, it close the form, but also show up the
access window:
Enter parameter value!
form!frmsupplier!cboSupplier
I learned all the code from this group.
Thanks to everybody!
The parameter form: frmSupplier
1.Combo box: supplier - cboSupplier
2.Command button: OK.
Code: private sub OK-Click()
Me.Visible = False
End Sub
3.Command button: Cancel
Code: private sub Cancel-Click()
DoCmd.Close 'Close Form
End Sub
When I click OK, it's runs the report.
But when I click on the Cancel, it close the form, but also show up the
access window:
Enter parameter value!
form!frmsupplier!cboSupplier
I learned all the code from this group.
Thanks to everybody!