Ashley Sutton
Registered User.
- Local time
- Today, 06:37
- Joined
- Jan 25, 2000
- Messages
- 10
The following code fragment is used to open a report based on one record from a recordset of around 2500 entries.
DoCmd.OpenReport "AVPS_Quote-DD_version", acPreview, , "[Quote Number]=Forms![AVPS Quotes issued]![Quote Number]"
It now takes around 40 seconds for the report to open and with the subsequent processing of various controls on the report, printed output can take several minutes to appear.
Previewing the report from the database window so that all 2500 records are included in the report also takes around 40 seconds to appear. This suggests that the above code is also including all records although only the requested one is actually produced.
Any suggestions on how to get around this problem?
DoCmd.OpenReport "AVPS_Quote-DD_version", acPreview, , "[Quote Number]=Forms![AVPS Quotes issued]![Quote Number]"
It now takes around 40 seconds for the report to open and with the subsequent processing of various controls on the report, printed output can take several minutes to appear.
Previewing the report from the database window so that all 2500 records are included in the report also takes around 40 seconds to appear. This suggests that the above code is also including all records although only the requested one is actually produced.
Any suggestions on how to get around this problem?