Solved Allow adding a new record while restricting existing records on a popup form

slharman1

Member
Local time
Today, 01:35
Joined
Mar 8, 2021
Messages
483
I have a popup form that lists records and has these fields:
CompID
Qty
Date
OrderDetID
I want to restrict the user from editing the existing records while still allowing them to add the new record.

Not sure how to go about this
Thanks
 
I am thinking using the Current Event would play into this. For example, in the Current Event, check if you are on a New Record. If so, allow edits; otherwise, disable it.
 
I am thinking using the Current Event would play into this. For example, in the Current Event, check if you are on a New Record. If so, allow edits; otherwise, disable it.
Thanks
How would i code this?
 
Code:
Private Sub Form_Current()
    Me.AllowEdits = Me.NewRecord
End Sub
 

Users who are viewing this thread

Back
Top Bottom