D
deb
I have 3 tables and a main form with a continuous sub form.
Table one is called tFuel (FuelID, FuelName, FuelType)
example
1, JetA, Liquid
2, Kerosine, Liquid
3, Propane, Gas
4, JetA, Duel
5, Kerosine, Duel
6, Propane, Duel
7, JetA, Multi
8, Kerosine, Multi
9, Propane, Multi
The second table (tPerfEmissionGua) holds the choice of (Gas,Liquid,Duel or
Multi) in the (FuelTypeChoice) field. Can only be one of the choices for the
combox (cboFuelType) that is in the masterform called (fPerfEmissionGua)
The Third table (tPerfEmissionGua) holds the choices of (JetA,
Kerosine,Propane...)
This is used as a combobox (cboFuel) in a continuous form that is the
subform called (fPerfEmissionGuaDetails)
After all of that.. My question is
How can I limit the entries in the continuous sub form as follows
if the main form combobox cboFuelType value is gas or Liquid - allow only
one entry in the subform
If the combobox cboFuelType value is Duel - allow only two entries in the
subform
If the combobox cboFuelType value is Multi- allow unlimited entries in the
subform
How can this be done?
Table one is called tFuel (FuelID, FuelName, FuelType)
example
1, JetA, Liquid
2, Kerosine, Liquid
3, Propane, Gas
4, JetA, Duel
5, Kerosine, Duel
6, Propane, Duel
7, JetA, Multi
8, Kerosine, Multi
9, Propane, Multi
The second table (tPerfEmissionGua) holds the choice of (Gas,Liquid,Duel or
Multi) in the (FuelTypeChoice) field. Can only be one of the choices for the
combox (cboFuelType) that is in the masterform called (fPerfEmissionGua)
The Third table (tPerfEmissionGua) holds the choices of (JetA,
Kerosine,Propane...)
This is used as a combobox (cboFuel) in a continuous form that is the
subform called (fPerfEmissionGuaDetails)
After all of that.. My question is
How can I limit the entries in the continuous sub form as follows
if the main form combobox cboFuelType value is gas or Liquid - allow only
one entry in the subform
If the combobox cboFuelType value is Duel - allow only two entries in the
subform
If the combobox cboFuelType value is Multi- allow unlimited entries in the
subform
How can this be done?