Cannot edit subform

M

MikeF

Just created a subform, and cannot make additions or edits.
The Add New Record button is greyed out.

Went to design mode, and hit Allow Additions, Allow Edits, etc.
it's not locked.
Even went to the form properties and put Me.AllowEdits = True in OnLoad and
OnCurrent.

Althougth the main form has Me.AllowEdits = False for safety, until I hit an
Add Record button.

It *was* working properly, ie allowing edits, but now is not.
Understand that doesn't make sense, but ....!

Anyone know what's causing this?

Thanx,
- Mike
 
D

Dale_Fye via AccessMonster.com

Change AllowEdits to True on the main form. Does that resolve the issue?

I rarely set AllowEdits to False, because it prevents just about everything.
Instead, I use some code that I got from Allen Browne's web-site (
http://www.allenbrowne.com/ser-56.html) to lock and unlock specific controls.

HTH
Dale
 
J

John W. Vinson

Just created a subform, and cannot make additions or edits.
The Add New Record button is greyed out.

Went to design mode, and hit Allow Additions, Allow Edits, etc.
it's not locked.
Even went to the form properties and put Me.AllowEdits = True in OnLoad and
OnCurrent.

Althougth the main form has Me.AllowEdits = False for safety, until I hit an
Add Record button.

It *was* working properly, ie allowing edits, but now is not.
Understand that doesn't make sense, but ....!

Anyone know what's causing this?

Check to see if the subform's Recordsource query is updateable.
 
M

MikeF

Followed the directions exactly, but get an error when the form opens.
It doesn't like the following piece of code, and stalls on it ...

4.To initialize the form so it comes up locked, set the On Load property of
your form to:
=LockBoundControls([Form],True)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top