Setting a subform property in a tab object

S

SpankyTClown

How do I set a subform to enable edits from within a tab object on a
form. The code used that is not working is:

Forms!frm_ConfigurationItem!subfrm_DHSDetails!Form.AllowEdits =
True

where:
frm_ConfigurationItem - main form
subfrm_DHSDetails - sub form

The error is that it cannot find the subform.


If I change it to contain the tabobject name:

Forms!frm_ConfigurationItem!tabobject!subfrm_DHSDetails!Form.AllowEdits
= True

The error message is: Object does not support this property or method.

Any suggestions.
Thanks
 
A

Al Camp

Spanky,
Try...
Forms!frm_ConfigurationItem!subfrm_DHSDetails.Form.AllowEdits = True

notice the period between DHSDetails and Form... not a bang (!)
 
A

Al Camp

Then you have some other problem with the subform.
Is it possible to add a NEW record?
What do you have the DataEntry property set to? (It should be NO)
Has the subform ever been editable?
 

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