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 / August 2007

Tip: Looking for answers? Try searching our database.

Updating Subform

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RFrechette - 03 Aug 2007 19:04 GMT
I've tried figuring this out for a while with no luck.

I have a form called "frm_Credits", this is based on the "tbl_Credits"
table.  
This form has a subform called "frm_Credits_Contin" based on the query
"qry_Credits_frm".  
The query "qry_Credits_frm" is based on the "tbl_Credits" table as well.

The "frm_Credits" is where the user can type in the credits as they come in,
one at a time.
The "frm_Credits_Contin" shows all the credits that have the same AcctNo and
are within the same period as the one shown on the "frm_Credits".

My problem is:  On the "frm_Credits" form there is a checkbox for the field
"Credits".  When this is checked off it gives the "Rate" the opposite sign.  
(If negative, changed to positive, etc)  This works fine.

But the record in the list (on the subform) that corresponds to the record
on the main form does not change.  On the "AfterUpdate" property of the
"Credits" checkbox, I tried to requery the main form, and I tried to requery
the subform.  The matching record in the subform does not change.  
This is what I tried:

[Forms]![frm_Credits]![frm_Credits_Contin].Requery
Or      
Me![frm_Credits_Contin].Form.Requery
Or
Me![frm_Credits_Contin].Form.Refresh
Or      
Me.Requery

None of them have worked.  Please tell me what I am doing wrong.  I searched
this forum and the web in general with no luck.

Your response would be much appreciated.
Thanks,
Rachel
RFrechette - 03 Aug 2007 19:12 GMT
One more thing:
The main form and the subform are linked by AcctNo and Period.

> I've tried figuring this out for a while with no luck.
>
[quoted text clipped - 33 lines]
> Thanks,
> Rachel
 
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.