473,387 Members | 1,463 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Question about Report Efficiency

Lets say I have to create a report based on the following tables:

WIDGETS MANUFACTURERS SHIPPERS

WidgetID ManufacturerID ShipperID
WidgetDesc ManufacturerName ShipperName
WidgetManID
WidgetShipID

In this example, the fields WidgetManID and WidgetShipID point to
records in the MANUFACTURERS and SHIPPERS table.

On the report I want to show the WidgetID, WidgetDesc,
ManufacturerName and ShipperName.

Is it more efficient to set the RecordSource of the report to the
WIDGETS table Left Joined to the MANUFACTURERS and SHIPPERS table OR
to set the RecordSource to just the WIDGETS table and then do
Dlookup's for the ManufacturerName and ShipperName controls?

Can anyone help?

BTW, I do have an application where I have several reports that I have
to create like this. I thought it would be easier asking the question
using a generic example.

Thanks in advance for any comments.
Nov 12 '05 #1
2 1549
Try it both ways and see which one works better. I have had reports
combining tables with left joins that after a time became real dogs,
removing the left join from a look up made huge improvements. On other
reports the opposite was true. You may not see any difference at 1st but as
your tables fill-up you may need to optimize slow reports.

"Dennis" <de***************@fernald.gov> wrote in message
news:64**************************@posting.google.c om...
Lets say I have to create a report based on the following tables:

WIDGETS MANUFACTURERS SHIPPERS

WidgetID ManufacturerID ShipperID
WidgetDesc ManufacturerName ShipperName
WidgetManID
WidgetShipID

In this example, the fields WidgetManID and WidgetShipID point to
records in the MANUFACTURERS and SHIPPERS table.

On the report I want to show the WidgetID, WidgetDesc,
ManufacturerName and ShipperName.

Is it more efficient to set the RecordSource of the report to the
WIDGETS table Left Joined to the MANUFACTURERS and SHIPPERS table OR
to set the RecordSource to just the WIDGETS table and then do
Dlookup's for the ManufacturerName and ShipperName controls?

Can anyone help?

BTW, I do have an application where I have several reports that I have
to create like this. I thought it would be easier asking the question
using a generic example.

Thanks in advance for any comments.

Nov 12 '05 #2
On 31 Oct 2003 04:31:08 -0800, de***************@fernald.gov (Dennis)
wrote:

DLookups are slow. Only use them as a last resort.

If WIDGETS.WidgetManID is a required field, an inner join can (and
should) be used. Same for WidgetShipID.

-Tom.
Lets say I have to create a report based on the following tables:

WIDGETS MANUFACTURERS SHIPPERS

WidgetID ManufacturerID ShipperID
WidgetDesc ManufacturerName ShipperName
WidgetManID
WidgetShipID

In this example, the fields WidgetManID and WidgetShipID point to
records in the MANUFACTURERS and SHIPPERS table.

On the report I want to show the WidgetID, WidgetDesc,
ManufacturerName and ShipperName.

Is it more efficient to set the RecordSource of the report to the
WIDGETS table Left Joined to the MANUFACTURERS and SHIPPERS table OR
to set the RecordSource to just the WIDGETS table and then do
Dlookup's for the ManufacturerName and ShipperName controls?

Can anyone help?

BTW, I do have an application where I have several reports that I have
to create like this. I thought it would be easier asking the question
using a generic example.

Thanks in advance for any comments.


Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: wardellcastles | last post by:
Is it possible to acccess a DOM object of the input XML inside of the XSLT script? I am planning to use <msxsl:script ..> with the C#.NET language. What I need to do is at the beginning of the...
4
by: Norma | last post by:
I am posting this again since I am on a deadline to get this completed... Sorry for being redundant... I have a table with a UPC#, CasesCompleted, TotalHours, standardGoal (pieces per hour) I...
18
by: Andre Laplume via AccessMonster.com | last post by:
I have inherited a bunch of dbs which are are shared among a small group in my dept. We typically use the dbs to write queries to extract data, usually dumping it into Excel. Most dbs originated...
31
by: mark | last post by:
Hello- i am trying to make the function addbitwise more efficient. the code below takes an array of binary numbers (of size 5) and performs bitwise addition. it looks ugly and it is not elegant...
7
by: jason | last post by:
In the microsoft starter kit Time Tracker application, the data access layer code consist of three cs files. DataAccessHelper.cs DataAcess.cs SQLDataAccessLayer.cs DataAcccessHelper appears...
9
by: RMC | last post by:
Hello, I'm looking for a way to parse/format a memo field within a report. The Access 2000 database (application) has an equipment table that holds a memo field. Within the report, the memo...
10
by: Dick Moores | last post by:
I'm still trying to understand classes. I've made some progress, I think, but I don't understand how to use this one. How do I call it, or any of its functions? It's from the Cookbook, at...
3
by: FanJet | last post by:
Given that most user access is via Citrix, we have Access licensees, a handy SQL Server and a need to develop moderately active 10 - 100 concurrent user databases, any +/- comments on using ADPs?...
9
by: mansoorm | last post by:
I've a db containing two tables which every item in table one is linked to 1--200 items in table 2. I want to generate a report like this: Item in table 1...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.