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 / Forms Programming / April 2008

Tip: Looking for answers? Try searching our database.

Update Subforms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RedHeadedMonster - 30 Apr 2008 14:54 GMT
I have a main form: ConfigUpdate that holds several subforms.  One subform is
entitled Config the other is ConfigWorkTotals.  What Im trying to do is
update / refresh / requery ConfigWorkTotals when an item is updated in Config.

I've tried several different things on the AfterUpdate:

Forms!ConfigUpdate!ConfigWorkTotals.refresh
Forms!ConfigWorkTotals.refresh

Keep getting the same message that it can't locate the form.  What am I doing
wrong?

RHM
Al Campagna - 30 Apr 2008 15:58 GMT
RHM,
   Try a Refresh against Config, but a Requery against ConfigWorkTotals.
Signature

   hth
   Al Campagna
   Microsoft Access MVP
   http://home.comcast.net/~cccsolutions/index.html

   "Find a job that you love... and you'll never work a day in your life."

>I have a main form: ConfigUpdate that holds several subforms.  One subform
>is
[quoted text clipped - 12 lines]
>
> RHM
Dale Fye - 30 Apr 2008 16:36 GMT
How about, in the AfterUpdate event of the Config subform:

Forms!MainForm.sub_ConfigWorkTotals.Form.requery

Access no longer recognizes ConfigWorkTotals as an independent form when it
is a subform.  So you have to refer to its parent, then you have to refer to
the subform CONTROL on the parent, then you need to refer to the FORM, and
then to the requery.

HTH
Dale
Signature

Don''t forget to rate the post if it was helpful!

email address is invalid
Please reply to newsgroup only.

> I have a main form: ConfigUpdate that holds several subforms.  One subform is
> entitled Config the other is ConfigWorkTotals.  What Im trying to do is
[quoted text clipped - 9 lines]
>
> RHM
 
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.