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

Subform fields 1

Status
Not open for further replies.

3063

Technical User
Jan 17, 2003
63
US
I have a subform that I am trying to set it up where the data that has been keyed cannot be edited or changed, but will also will allow additional data. I have looked in the properties and seen were you can lock fields down, but I need to be able to add additional data to it.
 
Are you saying that once a field is updated you don't want anyone to be able to change it? If so you could accomplish this using the locked property of the field either on the form open event and if you want it to lock immediately after the information is entered on the after update event of the field.

John Green
 
How are ya 3063 . . . . .

In the On Current event of the subForm, try this:
Code:
[blue]   If Me.NewRecord Then
      Me!AllowEdits = True
   Else
      Me!AllowEdits = False
   End If[/blue]


Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top