G
Guest
I have a combo box that displays Tariff information.
I have 4 fields on this particular form, EDLITariff1NumberID,
EDLITariff2NumberID, EDLITariff3NumberID, EDLITariff4NumberID. Based on
which tariff number they are on, when the user clicks on the combo box, I
only want it to select the tariff information associated with that ID (the
tariff they are wanting to change/edit). So, one combo box to use for all 4
fields. The combo box is very large so I cannot have 4 of these on the form
or I get 'cannot open anymore databases . . .'. The user needs to beable to
select ALL tariffs for each tariff line (which is why I need this large
combo!)
ANYWAYS, to make a long story short(er), I am changing the rowsource in the
combo box to match the ID of the tariff number they are on. This works
slick, however, when the user (ME!) tries to change the tariff number the
error is "Control can't be edited; it's bound to expression '16057'".
Here is the code on the GotFocus property of the combo box:
If me.txtTariffNbr = 1 then
Me.cboTariffNumber.ControlSource = "=" & Me.EDLITariff1NumberID
End if
If me.txtTariffNbr = 2 then
Me.cboTariffNumber.ControlSource = "=" & Me.EDLITariff2NumberID
End if
and so on . . . . - oh then I do a me.cboTariffNumber.requery
Any advice or solutions (yes yes yes!) is GREATLY appreciated!
Thanks!!!!
Janis in MinneNO-SNOWta (yiipeeee it's raining!)
I have 4 fields on this particular form, EDLITariff1NumberID,
EDLITariff2NumberID, EDLITariff3NumberID, EDLITariff4NumberID. Based on
which tariff number they are on, when the user clicks on the combo box, I
only want it to select the tariff information associated with that ID (the
tariff they are wanting to change/edit). So, one combo box to use for all 4
fields. The combo box is very large so I cannot have 4 of these on the form
or I get 'cannot open anymore databases . . .'. The user needs to beable to
select ALL tariffs for each tariff line (which is why I need this large
combo!)
ANYWAYS, to make a long story short(er), I am changing the rowsource in the
combo box to match the ID of the tariff number they are on. This works
slick, however, when the user (ME!) tries to change the tariff number the
error is "Control can't be edited; it's bound to expression '16057'".
Here is the code on the GotFocus property of the combo box:
If me.txtTariffNbr = 1 then
Me.cboTariffNumber.ControlSource = "=" & Me.EDLITariff1NumberID
End if
If me.txtTariffNbr = 2 then
Me.cboTariffNumber.ControlSource = "=" & Me.EDLITariff2NumberID
End if
and so on . . . . - oh then I do a me.cboTariffNumber.requery
Any advice or solutions (yes yes yes!) is GREATLY appreciated!
Thanks!!!!
Janis in MinneNO-SNOWta (yiipeeee it's raining!)