Text Box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a form for taking orders. I would like to create form where after
taking 1st order and for ex. selecting TAB key program would ask if I have
additional items to add. There would be only max of 6 orders to place on a
form. I created 6 text boxes but i dont know how to hide them in case there
is only 1 order. By default I would like to have only 1 text box for an
order and I would like to add depends on number of orders. Thanks
 
You could use code to look at every text box after they're populated and hide
the ones that have nothing in them. Perhaps on the form's OnLoad or
OnCurrent events, put something like this:

If IsNull(Me.TextBox1) Then
Me.TextBox1.Visible = False
End If
If IsNull(Me.TextBox2) Then
Me.TextBox2.Visible = False
End If
etc.....

Hope that helps. Good luck.

-ndalton
 
Back
Top