T
Tom
I need to create some validation on a tab control that checks if all
"required fields & subforms" have been selected/received data.
Here's what I have:
- 2 tables
- 1 main form & 1 subform
The mainform contains:
- 3 pages... to be more exact...
- page 1 has 2 controls (textbox and combo)... both of them are required
fields
- page 2 has 1 combo plus 4 textboxes... only the combo is a required
field... once a selection is made from the combo, the other 4 textfields are
automatically populated (so I don't worry about them)
- page 2 also has a subform... I must make a selection (at least one value)
from the subform
- page 3 has 3 checkboxes... they aren't required
Here's what I need to achieve:
- I start w/ page 1... if I leave any of the 2 required controls "empty" I
cannot move to page 2 or 3
- once on page 2 (process as on page 1), I cannot navigate off the page
unless the combo and subform have a value
- page 3 doesn't have restrictions... if left blank, no problem
Could anyone please provide me some more detail as to how I can throw "error
messages" and change the background color of those controls that are empty?
Once completed, background color changes back to original color (white).
I'd really appreciate any help in this matter.
"required fields & subforms" have been selected/received data.
Here's what I have:
- 2 tables
- 1 main form & 1 subform
The mainform contains:
- 3 pages... to be more exact...
- page 1 has 2 controls (textbox and combo)... both of them are required
fields
- page 2 has 1 combo plus 4 textboxes... only the combo is a required
field... once a selection is made from the combo, the other 4 textfields are
automatically populated (so I don't worry about them)
- page 2 also has a subform... I must make a selection (at least one value)
from the subform
- page 3 has 3 checkboxes... they aren't required
Here's what I need to achieve:
- I start w/ page 1... if I leave any of the 2 required controls "empty" I
cannot move to page 2 or 3
- once on page 2 (process as on page 1), I cannot navigate off the page
unless the combo and subform have a value
- page 3 doesn't have restrictions... if left blank, no problem
Could anyone please provide me some more detail as to how I can throw "error
messages" and change the background color of those controls that are empty?
Once completed, background color changes back to original color (white).
I'd really appreciate any help in this matter.