Hideing your selcion for the object

  • Thread starter Thread starter JDOWG
  • Start date Start date
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
 
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.
 
Back
Top