Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help...How to reset combo boxes???

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I created a form with 2 combo boxes that call up a report from a query. How do I reset the combo boxes automatically after a selection is made without closing and opening the form again...??

Thank you...
 
I'm not sure what you might be trying to accomplish, but I created a form with a combo box (Combo0) and a button (Command0). In the Command0_Click event, for the button, I placed the following:

Code:
Private Sub Command0_Click()
  'Opens the report
  DoCmd.OpenReport "rptReport", acViewPreview
  'Clears the entry in the Combo Box
  Forms!frmFormName!Combo0 = ""
End Sub

Hope this helps...
 
In the second combo box's AfterUpdate event you can do this:

ComboBox = ""
ComboBox = ""

This is simular to the above. ljprodev@yahoo.com
Professional Development
MS Access Applications
 
That should be

ComboBox1 = ""
ComboBox2 = "" ljprodev@yahoo.com
Professional Development
MS Access Applications
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top