C
CS
My Macro Question:
I have created a form in which the user can check an option group in order
to determine whether they charge the customer's callout fee by a standard
fee (value=1) or based on actual mileage (value=2).
Usually, the user will charge a standard base fee (1), and this is the
default of the option group.
I have a conditional macro which assures that, if the user checks "By
Mileage", there must be number entered in the Mileage control. When the
user checks "By Mileage" in the option group, the macro fires on Mouse Down,
and does the following:
If Mileage is null, msgbx says "You must enter mileage to use this option",
goes to the Mileage control, sets the value of the optiongroup to 2, and
stops the macro.
If Mileage is not null, nothing happens.
This is my problem -- it's possible for the user to go back delete the info
in the mileage box while leaving the "By Mileage" option checked. I want to
make sure that, if they are using the By Mileage option, there is mileage in
the mileage control. Where should I put this Macro?
My Disable all fields question:
Is there an easy way to disable all the other fields on the form until a
certain field is completed? (This field is required at the table level, but
I'd prefer to just have the other fields completely unavailable until this
primary field (Customer) is populated through the drop-down.) I realize
that I could do this one field at a time, but I'd like to find an easy
work-around if it's possible.
Thanks in advance for any help.
CS
I have created a form in which the user can check an option group in order
to determine whether they charge the customer's callout fee by a standard
fee (value=1) or based on actual mileage (value=2).
Usually, the user will charge a standard base fee (1), and this is the
default of the option group.
I have a conditional macro which assures that, if the user checks "By
Mileage", there must be number entered in the Mileage control. When the
user checks "By Mileage" in the option group, the macro fires on Mouse Down,
and does the following:
If Mileage is null, msgbx says "You must enter mileage to use this option",
goes to the Mileage control, sets the value of the optiongroup to 2, and
stops the macro.
If Mileage is not null, nothing happens.
This is my problem -- it's possible for the user to go back delete the info
in the mileage box while leaving the "By Mileage" option checked. I want to
make sure that, if they are using the By Mileage option, there is mileage in
the mileage control. Where should I put this Macro?
My Disable all fields question:
Is there an easy way to disable all the other fields on the form until a
certain field is completed? (This field is required at the table level, but
I'd prefer to just have the other fields completely unavailable until this
primary field (Customer) is populated through the drop-down.) I realize
that I could do this one field at a time, but I'd like to find an easy
work-around if it's possible.
Thanks in advance for any help.
CS