Record Locked

kitty77

Registered User.
Local time
Today, 12:49
Joined
May 27, 2019
Messages
719
I have a form that is set for AllowEdits = False, Oncurrent.
I then have a button that AllowEdits = True when I want to unlock the record. This all works fine.

But I also have a duplicate button that does not work because when it goes to a new record and tries to paste, its locked. It resets. Any way around this?

Thanks
 
Are you using PasteAppend?
 
I created the button with the wizard, duplicate macro.
 
Edit your button's macro.
add new Action:

SetValue:
Item = [FORMS]![yourFormName].[AllowEdits]
Expression = True

now, move this action just below RecordGotoNew

at the end of the macro add another Action that will re-instate AllowEdits to False using SetValue again.
 
Edit your button's macro.
add new Action:

SetValue:
Item = [FORMS]![yourFormName].[AllowEdits]
Expression = True

now, move this action just below RecordGotoNew

at the end of the macro add another Action that will re-instate AllowEdits to False using SetValue again.
Editing the buttons macro works pretty fine. It also bypasses the the allowedits and it can duplicate even without allowingedits.
 

Users who are viewing this thread

Back
Top Bottom