If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
"Reset" combo boxes
I have an unbound form with combo boxes used as filters for my reports. How
can I reset the combo boxes back to blanks so the user doesn’t have to exit the form to choose a different filter selection? Can you set up a command button that resets them? Thanks for any suggestions. |
#2
|
|||
|
|||
"Reset" combo boxes
Yes, use a command button and label it Clear Filter. Code the onclick event:
Me.mycombo.value = "" Me.requery -- Milton Purdy ACCESS State of Arkansas "AccessKay" wrote: I have an unbound form with combo boxes used as filters for my reports. How can I reset the combo boxes back to blanks so the user doesn’t have to exit the form to choose a different filter selection? Can you set up a command button that resets them? Thanks for any suggestions. |
#3
|
|||
|
|||
"Reset" combo boxes
Me!NameOfComboBox = Null
-- Doug Steele, Microsoft Access MVP http://www.AccessMVP.com/DJSteele (no e-mails, please!) "AccessKay" wrote in message ... I have an unbound form with combo boxes used as filters for my reports. How can I reset the combo boxes back to blanks so the user doesn't have to exit the form to choose a different filter selection? Can you set up a command button that resets them? Thanks for any suggestions. |
#4
|
|||
|
|||
"Reset" combo boxes
Thank you! This works great.
"golfinray" wrote: Yes, use a command button and label it Clear Filter. Code the onclick event: Me.mycombo.value = "" Me.requery -- Milton Purdy ACCESS State of Arkansas "AccessKay" wrote: I have an unbound form with combo boxes used as filters for my reports. How can I reset the combo boxes back to blanks so the user doesn’t have to exit the form to choose a different filter selection? Can you set up a command button that resets them? Thanks for any suggestions. |
#5
|
|||
|
|||
"Reset" combo boxes
I tried this way too and it also works nicely. Thanks!
"Douglas J. Steele" wrote: Me!NameOfComboBox = Null -- Doug Steele, Microsoft Access MVP http://www.AccessMVP.com/DJSteele (no e-mails, please!) "AccessKay" wrote in message ... I have an unbound form with combo boxes used as filters for my reports. How can I reset the combo boxes back to blanks so the user doesn't have to exit the form to choose a different filter selection? Can you set up a command button that resets them? Thanks for any suggestions. . |
Thread Tools | |
Display Modes | |
|
|