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 / SQL Server / ADP / October 2005

Tip: Looking for answers? Try searching our database.

subforms getting requeried unnecess

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Malcolm Cook - 04 Oct 2005 06:43 GMT
I am surprised to find that subforms get queried whenever any change is made to any field on the master form.

For example, in the Northwind ADP, in the "Orders" form, changing any field at all results in the embedded subform to be queried,
as evidenced by the following SQL Profiler trace:

RPC:Completed exec sp_executesql N'SELECT  *  FROM "dbo"."Order Details Extended" WHERE ((@P1 = "OrderID"))', N'@P1 int', 10248
Microsoft Office 2003

Since the contents of the subform depend solely upon the value of the values for the 'Link Master Fields', I don't see any reason
why this should be the behavior of and ADP application.

I find these queries to be both entirely unnecessary and inefficient.  I would appreciate learning if
   my reasoning is incorrect and I am overlooking some important consideration
   what reasons exist for this implementation
   if there are any settings that alter this behavior (i.e. cause the subform only to requeried if any of the linking fields in the
master form is changed).

Thanks...

Signature

Malcolm Cook - mec@stowers-institute.org
Database Applications Manager - Bioinformatics
Stowers Institute for Medical Research - Kansas City, MO  USA

Michael Cheng [MSFT] - 06 Oct 2005 08:28 GMT
Hi Malcolm,

Thanks for the questions.

Yes, as you have tested, this is a by design feature of Access and I am
afraid we do not have options to close/disable this for subform refresh
checking everytime.

Sincerely yours,

Michael Cheng
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
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.