By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,574 Members | 2,966 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,574 IT Pros & Developers. It's quick & easy.

Required field upon meeting a condition in a form

P: 11
I have two fields that ask for a date: DOrderDate and DExpiration. I would like to set a condition that if someone enters a date in the DOrderDate field but leaves the DExpiration date blank then a message pops up and the field is required. The issue is that there is no submit button on this form and there is no guarantee that the user will tab through the fields. I know very little VB so may need some patient coaching. thanks!
Oct 10 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 2.5K+
P: 3,072
Where are these fields located ?
The standard way would be to have a form with a [Cancel] and [Save] button.
When the user presses the [Save] button, then you can perform the needed testing and issue a warning. When pressing [Cancel] nothing will happen.

Oct 11 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.