Hideing your selcion for the object

J

JDOWG

Hello,
I am trying to get my form to set a hide selection.
Contact_Name.HideSelection = True
Contact_Phone.HideSelection = True

basicly i am tying to get the user to enter their info
in. If they dont do it the the rest of the selection is
basicly shadded out. but when they do enter there info
in, the selection becomes able to be wrtten in.

Thanks
J
 
J

John Vinson

Hello,
I am trying to get my form to set a hide selection.
Contact_Name.HideSelection = True
Contact_Phone.HideSelection = True

basicly i am tying to get the user to enter their info
in. If they dont do it the the rest of the selection is
basicly shadded out. but when they do enter there info
in, the selection becomes able to be wrtten in.

I'd suggest setting the Enabled property of all the controls on the
form to False to grey them out in the Form's Current event:

Me!txtX.Enabled = False

Then in the AfterUpdate events of Contact_Name and Contact_Phone put
code to enable the other controls:

Private Sub Contact_Name_AfterUpdate()
If Me!Contact_Name & "" <> "" And Me!Contact_Phone <> "" Then
Me!txtX.Enabled = True
Me!txtY.Enabled = True
<etc>
End If
End Sub

I'm not familiar with the "HideSelection" method.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top