Hello I have a form with a combobox called CboOffer
Also on the form I have a textbox with a Dcount function - the textbox is called txt_Offer_Count
If [txt_Offer_Count] has a value of 0 I would like [CboOffer] to update when the user selects any value.
If [txt_Offer_Count] has a value of >0 I would like [CboOffer] to update when the user selects a value other than Offer.
If we leave the Offer criteria to one side, I thought I would just test the before update event as follows:
Using the before update event of the combobox:
The message displays OK, but the combobox is updated with the new value (which I don not want).
Any ideas - thanks Mark
Also on the form I have a textbox with a Dcount function - the textbox is called txt_Offer_Count
If [txt_Offer_Count] has a value of 0 I would like [CboOffer] to update when the user selects any value.
If [txt_Offer_Count] has a value of >0 I would like [CboOffer] to update when the user selects a value other than Offer.
If we leave the Offer criteria to one side, I thought I would just test the before update event as follows:
Using the before update event of the combobox:
Code:
if me.txt_offer_Count > 0 then
me.CboOffer.undo
msgbox "There is already an offer"
end if
The message displays OK, but the combobox is updated with the new value (which I don not want).
Any ideas - thanks Mark