Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data Validation in a Word Form

Status
Not open for further replies.

FrankenMonkey

Programmer
Aug 22, 2003
4
US
I am pretty green when it comes to VB and am in need of a starting point in developing a Word 2000 Form. I have created the form in Word itself which consists of 2 columns. The first column is filled with drop down menus with options of &quot;< Select One >&quot;, &quot;Yes&quot;, &quot;No&quot;, and &quot;N/A&quot;. The second column is filled with text boxes. It appears like this:

Compliance Explanation
---------- -----------
cboCompliance1 txtExplanation1
cboCompliance2 txtExplanation2
cboCompliance3 txtExplanation3
. .
. .
. .

The logic that I must build into this form is:

If you select &quot;Yes&quot;, &quot;No&quot;, or &quot;N/A&quot; in one of the drop down menus, then text MUST be entered into the corresponding explanation textbox before moving on to the next row. If &quot;< Select One >&quot; is selected and the user tabs over to the corresponding Explanation textbox, then they are allowed to move on to the next row.

As I said, I'm a little green when it comes to VB Programming. If someone has a bit of sample code or solution that I could build from or utilize, it would be greatly appreciated. Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top