J
JK
I'm using Access03 and I would be greatful if someone would help me program
the default value of a field.
I have a workorders form much like the one in the microsoft example. I have
a sales tax field with it's default value set to
"=DLookUp("[SalesTaxRate]","My Company Information")"
I also have a tab for outside vendors. The vendors are scattered all over
the country. I have a pull down menu so the user can select the vendor and
then enter any parts or services we hired the vendor to do. Each vendor can
have its own tax rate. So I have a combo box (VendorID) with VendorTaxRate as
one of the columns. When a user selects a vendor that vendors tax rate
populates a hidden field.
Now, I would like for the main Sales Tax % field with the default value
(specificed above) to say, if VendorID IsNull, then use the DLookup Function
above - if not - use the hidden vendor tax rate field.
Hope that makes sense.
I have to start taking VBA classes... Any help you could provide... Thx...
the default value of a field.
I have a workorders form much like the one in the microsoft example. I have
a sales tax field with it's default value set to
"=DLookUp("[SalesTaxRate]","My Company Information")"
I also have a tab for outside vendors. The vendors are scattered all over
the country. I have a pull down menu so the user can select the vendor and
then enter any parts or services we hired the vendor to do. Each vendor can
have its own tax rate. So I have a combo box (VendorID) with VendorTaxRate as
one of the columns. When a user selects a vendor that vendors tax rate
populates a hidden field.
Now, I would like for the main Sales Tax % field with the default value
(specificed above) to say, if VendorID IsNull, then use the DLookup Function
above - if not - use the hidden vendor tax rate field.
Hope that makes sense.
I have to start taking VBA classes... Any help you could provide... Thx...