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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine if combo box values changed

Status
Not open for further replies.

dbero

Technical User
Mar 31, 2005
109
US
I have an unbound form that contains combo boxes, command buttons and charts. the command buttons are to requery data based on criteria in the combo boxes.

What I am trying to do is to determine if a change has occurred to a combo box when the command button is clicked. if the combo box values are the same, I do not need to refresh the charts as part of the routine. if the combo boxes were changed, then i do.

So, is it possible to determine in a command click routine if the unbound combo boxes have changed values?

thank you
 
comboboxoldvalue=me.combobox
requery

if comboboxoldvalue<>me.combobox then
refresh the charts

end if



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top