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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Allow Edit conditionally 1

Status
Not open for further replies.

Jitterbug

Technical User
Nov 3, 2001
5
GB
I have a form with numerous records in detailing houses.

I want to set the forms properties so that if the houses status is sale completed, that record cant be edited.

I know you need to use an if statement but it refuses to work.

Jitterbug :cool:

P.S. And the procedure has to be put in the on current command, right?
 
one way is to set the sales as a yes/no field and use the if statement in the OnCurrent event.
Example:

If(Me.SalesCompleted) Then
Me.AllowEdits = False
End If

HTH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top