When is the Me.NewRecord property checked?

Montez659

Well-known Member
Joined
May 4, 2005
Messages
918
I have code that is in the On Current event of the form to check to see if it is a new record or not. If it is a new record, sub forms are disabled as it would cause an error if the parent record wasn't formed yet.

Usually, as soon as someone types on letter, the Form automatically becomes not New, and thus the embargo on the subforms is lifted.

However, I seem to be running into a problem that on a record I have a command button that will copy certain info to create a new record. Even though that data is entered and a new record ID is created, it is almost as if the Me.NewRecord is still returning true and the embargo is not lifting.

And now, it seems to be happening even when I am not copying, but strictly adding a new record. So when is this property checked?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,224,518
Messages
6,179,248
Members
452,900
Latest member
LisaGo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top