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 / May 2008

Tip: Looking for answers? Try searching our database.

Question: Counting  subform records on main form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pattyt - 19 May 2008 21:02 GMT
Hi,
I have a very simple question, I think, related to counting subform records
on my main form.

I have a text box in the header of my subform that counts records. I also
added a second text box on my main form with its control source to the first
text box in my subform.

The text box in my main form updates automatically when I delete records in
my subform but when I add records  I have to go over to the next record and
then come back in order for the text box to update.

Can anyone explain what's going on?
Thanks
Pete D. - 20 May 2008 04:04 GMT
When you delete a record your form does a requery as it must load a record
that exists.  You must force the new record to requery which is what happens
when you change records.  Search help for requery to get a more detailed
explanation.

> Hi,
> I have a very simple question, I think, related to counting subform
[quoted text clipped - 14 lines]
> Can anyone explain what's going on?
> Thanks
 
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.