Re: refresh combo boxes on form
- From: "tina" <nospam@xxxxxxxxxxx>
- Date: Thu, 19 Mar 2009 03:33:02 GMT
you're welcome :)
"bpauley" <wlp46@xxxxxxxxxxx> wrote in message
news:O6%231sQ8pJHA.4448@xxxxxxxxxxxxxxxxxxxxxxx
Hello Tina,Current
I did as you suggested and also cleaned out some of the old code from past
attempts to get this to work and wallah! it is working.
Big Thanks to you and Sandy for your suggestions.
Bill
"tina" <nospam@xxxxxxxxxxx> wrote in message
news:M10wl.455703$Mh5.377305@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
try requerying the two dependent combobox controls on the *form's*
differentevent, as
Private Sub Form_Current()
Me!cboCurrRateAmt.Requery
Me!cboCurrPayRateAmt.Requery
End Sub
hth
"bpauley" <wlp46@xxxxxxxxxxx> wrote in message
news:uqk7zN2pJHA.3876@xxxxxxxxxxxxxxxxxxxxxxx
Hello Sandy,
Thanks for your response
I tried your suggestion, but I get the same result. I am probably not
explaining my situation very well.
When I enter a new record it works at expected. When I go to a
therecord, after entering a new record or opening the form, the rates in
boxes.combo boxes don't synchronize with the change in the first 3 combo
typeI
will try to explain what I have.
I enter a contactid in the first combobox to select the employee and
employee(PT OT ST PTA COTA). The second combo box selects the facility theemployee
is working in. The third combo box selects the type of shift the
rateis
working. So those three combo boxes filter a query down to the exact
tryingto
pay and bill for the employee hours. The two combo boxes that I am
theto
synchronize are cboCurrRateAmt and cboCurrPayRateAmt. Both display a
currency amount. In the query design grid behind the form, I have in
thecriteria of the ContactID, forms!frmEnterMonthlyVisits.ContactID; in
worksFacilityID, forms!EnterMonthlyVisits.FacilityID; in the TherID,amounts
forms!frmEnterMonthlyVisits.TherID.
As I said, all works well until I move to a different record. The
CurrRateAmt and CurrPayRateAmt combo boxes do not update to the new
unless I requery the form.the
Hoping you can make some sense of what I have tried to explain.
Thanks again for your suggestion. Any other ideas?
Bill
"Sandy Hayman" <help@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:#kBBc$vpJHA.1248@xxxxxxxxxxxxxxxxxxxxxxx
Hi Bill
In the after_update event of the combo box, use the following line
(replace combobox with your combobox name):
me.combobox.requery
Sandy
AA Absolute Access, ACT - Australia
"bpauley" <wlp46@xxxxxxxxxxx> wrote in message
news:%230WFdtvpJHA.1252@xxxxxxxxxxxxxxxxxxxxxxx
How do I refresh combo boxes on a form?
I have two combo boxes dependant on the info in 3 other combo boxes.
two I need refreshed are cboCurrPayRate and cboCurrPayRate. All
good.usingexactly as planned, except when I change records by scrolling or by
the record change arrow, the rates behind the two combo boxes do not
update based on the current info in the other 3 combo boxes. When I
refresh the form the rates behind the combo boxes update as desired.
I have tried refreshing the form on the "onchange" event, but no
Me!frmEnterMonthlyVisits.refresh
is the line I used.
Thanks
Bill
.
- References:
- refresh combo boxes on form
- From: bpauley
- Re: refresh combo boxes on form
- From: Sandy Hayman
- Re: refresh combo boxes on form
- From: bpauley
- Re: refresh combo boxes on form
- From: tina
- Re: refresh combo boxes on form
- From: bpauley
- refresh combo boxes on form
- Prev by Date: Re: Help me create a serach to search my form PLEASE NO COMBO BOX
- Next by Date: Re: ComboBox on subform - limit to list can be overridden?
- Previous by thread: Re: refresh combo boxes on form
- Next by thread: Form Validation
- Index(es):
Relevant Pages
|