Refresh

  • Thread starter Thread starter nat
  • Start date Start date
N

nat

I wrote a code to disable :

If Me!USCitizen = True Then
Me!EmploymentCardNo.Enabled = False
Else
If Me!USCitizen = False Then
Me!EmploymentCardNo.Enabled = True
End If
End If
you can enable/disable textbox or whatever on that
record, but My problem is when i click on next record,
disable code still show on next record.

My question is how can i refresh the form so that what
ever I disable on record#1 will not show on record#2

Thank you
 
nat said:
I wrote a code to disable :

If Me!USCitizen = True Then
Me!EmploymentCardNo.Enabled = False
Else
If Me!USCitizen = False Then
Me!EmploymentCardNo.Enabled = True
End If
End If
you can enable/disable textbox or whatever on that
record, but My problem is when i click on next record,
disable code still show on next record.

My question is how can i refresh the form so that what
ever I disable on record#1 will not show on record#2

Copy (or call) your code in the form's Current event. You can also simplify your
statement to...

Me!EmploymentCardNo.Enabled = Not Me!UsCitizen
 
Back
Top