Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / April 2006

Tip: Looking for answers? Try searching our database.

Issues with forms and subforms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
UncleOli - 01 Feb 2006 21:00 GMT
Microsoft Access 2003

I have an "Edit record" button on a subform (as for detail line items in an
invoice for a particular customer) to enable allowedits when it is clicked.
How do I disable allowedits when moving to a new set of records (as for a new
customer being selected in the main form), so that the user needs to click on
the "Edit record" button again to make changes to the detail records.
AccessTaxMan - 02 Feb 2006 18:32 GMT
For the main form OnEnter property, create an event procedure to set your sub
form AllowEdits property to False.

> Microsoft Access 2003
>
[quoted text clipped - 3 lines]
> customer being selected in the main form), so that the user needs to click on
> the "Edit record" button again to make changes to the detail records.
UncleOli - 06 Feb 2006 21:34 GMT
The main form itself does not have an OnEnter property. Do you mean that I
should use an OnEnter property for one of the controls on the main form?
Also, how do I refer to the subform in the context of the main form?

Thank you.
02.06.06 10.06 hst

> For the main form OnEnter property, create an event procedure to set your sub
> form AllowEdits property to False.
[quoted text clipped - 6 lines]
> > customer being selected in the main form), so that the user needs to click on
> > the "Edit record" button again to make changes to the detail records.
AccessTaxMan - 09 Feb 2006 18:02 GMT
I stand corrected.  Try using the OnCurrent, or OnFocus event of the main
form to set your subform AllowEdits property to False.

You stated your subform displays records related to choices made on your
main form, but does not allow edits until the command button is clicked.  I
assumed that your subform AllowEdits property was set to No when information
is first displayed.  After making edits, and the user moves back to the main
form to make another selection, you seem to need an event procedure to
recreate this condition.

> The main form itself does not have an OnEnter property. Do you mean that I
> should use an OnEnter property for one of the controls on the main form?
[quoted text clipped - 13 lines]
> > > customer being selected in the main form), so that the user needs to click on
> > > the "Edit record" button again to make changes to the detail records.
UncleOli - 07 Apr 2006 03:57 GMT
Sorry for not responding earlier. Thanks for your help.

Oli
04.06.06 16.55 hst

> I stand corrected.  Try using the OnCurrent, or OnFocus event of the main
> form to set your subform AllowEdits property to False.
[quoted text clipped - 23 lines]
> > > > customer being selected in the main form), so that the user needs to click on
> > > > the "Edit record" button again to make changes to the detail records.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.