The answer to this one is probably "test it yourself and find out!",
but I'll ask anyway. Pursuant to my previous question - sending
separate recordsets to Word using the CreateTableFromRecordset code
from ADH2000...
I will be opening like 8 recordsets {one for each building, and there
are 8). Would I be better off or is there anything to be gained by
opening one recordset of the query with _all_ the records in it,
filtering that, and sending the result to the function?
My guess is probably not.
I'm doing two buildings per page, so my guess is to do something like
set the fIncludeFieldNames argument to True for the odd numbered calls
and False for the even ones...
If I can't do this with ADO, could I just change the line:
varData = rstAny.GetString()
to return a tab-delimited array in DAO and pass that to Word? (Sounds
like I might have found an instance when I really would like to use
ADO... so far hasn't really happened...)
Thanks for reading this far...
Any pointers would be great!
Thanks,
Pieter 2 1749
To anwer a question you didn't ask, do it the way that's easiest to code
first, then worry about optimization if there is a speed problem.
To answer what you did ask...
Actually, it does depend a lot on context. In most cases you're likely to run
into these days, though, your best bet is to do one query that gets all the
rows your process will use, then filter to get the ones you want, or just rely
on the sort order used in the original query to keep the related groups of
records together.
About the only time I would recommend doing multiple, separate queries for a
single process is when the data resides on a database server, and the size of
the recordsets is very large (say, 50MB or more).
On 19 Sep 2004 19:30:17 -0700, pi********@hotmail.com (Pieter Linden) wrote: The answer to this one is probably "test it yourself and find out!", but I'll ask anyway. Pursuant to my previous question - sending separate recordsets to Word using the CreateTableFromRecordset code from ADH2000...
I will be opening like 8 recordsets {one for each building, and there are 8). Would I be better off or is there anything to be gained by opening one recordset of the query with _all_ the records in it, filtering that, and sending the result to the function?
My guess is probably not.
I'm doing two buildings per page, so my guess is to do something like set the fIncludeFieldNames argument to True for the odd numbered calls and False for the even ones...
If I can't do this with ADO, could I just change the line:
varData = rstAny.GetString()
to return a tab-delimited array in DAO and pass that to Word? (Sounds like I might have found an instance when I really would like to use ADO... so far hasn't really happened...)
Thanks for reading this far... Any pointers would be great! Thanks, Pieter
Steve Jorgensen <no****@nospam.nospam> wrote in message news:<u7********************************@4ax.com>. .. To anwer a question you didn't ask, do it the way that's easiest to code first, then worry about optimization if there is a speed problem.
To answer what you did ask...
Actually, it does depend a lot on context. In most cases you're likely to run into these days, though, your best bet is to do one query that gets all the rows your process will use, then filter to get the ones you want, or just rely on the sort order used in the original query to keep the related groups of records together.
About the only time I would recommend doing multiple, separate queries for a single process is when the data resides on a database server, and the size of the recordsets is very large (say, 50MB or more).
On 19 Sep 2004 19:30:17 -0700, pi********@hotmail.com (Pieter Linden) wrote:
The answer to this one is probably "test it yourself and find out!", but I'll ask anyway. Pursuant to my previous question - sending separate recordsets to Word using the CreateTableFromRecordset code from ADH2000...
I will be opening like 8 recordsets {one for each building, and there are 8). Would I be better off or is there anything to be gained by opening one recordset of the query with _all_ the records in it, filtering that, and sending the result to the function?
My guess is probably not.
I'm doing two buildings per page, so my guess is to do something like set the fIncludeFieldNames argument to True for the odd numbered calls and False for the even ones...
If I can't do this with ADO, could I just change the line:
varData = rstAny.GetString()
to return a tab-delimited array in DAO and pass that to Word? (Sounds like I might have found an instance when I really would like to use ADO... so far hasn't really happened...)
Thanks for reading this far... Any pointers would be great! Thanks, Pieter
Thanks, Steve. No, the recordsets are tiny - absolute maximum 150
records. My real problem is going to be moving the data to Word a bit
at a time. The basic format is something like (2 buildings per page).
Building Apt Size Apt Resident Annual Salary Rent
A 2 Efficiency Jones $25,000 $565
A 12 1 Bedroom Smith $28,000 $675
B 1 Efficiency King $25,000 $565
<page break>
Building Apt Size Apt Resident Annual Salary Rent
C 2 Efficiency Jones $25,000 $565
C 12 1 Bedroom Smith $28,000 $675
D 1 Efficiency King $25,000 $565
Guess I'll see if I can't write Ken's code in DAO...
Pieter This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Andrew Wrigley |
last post by:
Hi
Is there any way to walk thru memory to find a variable that holds a
reference to a recordset that has been left open? (I use ADO for my
recordsets.)
The reason I want this info:
I am...
|
by: John |
last post by:
Just a general question...
I'm currently using a combobox that when updated, opens a form with
its recordset based on a query using the combo box value as the
criteria.
I'm I correct in...
|
by: James Cane |
last post by:
Here's an interesting problem that someone might have an answer to...
Some time ago, I wrote a set of utility classes which wrap up the
custom row source function needed to add arbitrary items to...
|
by: Sunil Korah |
last post by:
I am having some trouble with opening recordsets. I have used code
more or less straight from the access help. But still I am getting
some errors. I am unable to work out what exactly I am doing...
|
by: Bob Alston |
last post by:
Most of my Access database implementations have been fairly small in
terms of data volume and number of concurrent users. So far I haven't
had performance issues to worry about. <knock on wood>
...
|
by: allyn44 |
last post by:
Hello,
I have built a serch form for users to edit records. I only want them
to pull up the record they need, and I want to check for nulls. There
should not be dupes becasue the underlying...
|
by: blue875 |
last post by:
Hello helper people who are smarter than me:
I have a form that needs to submit multiple queries to different tables
during one Sub's execution. Some sections are as simple as:
1| With rst
2|...
|
by: David W. Fenton |
last post by:
I was just working on an A97 app in which has lots of filtering and
dynamic changing of the recordsets, but also uses bookmark
navigation of subsets of records. I was trying to implement some...
|
by: stjulian |
last post by:
I have a stored procedure which returns 2 tables and 1 output value. I want
the first table to be assigned to rs1 and the second to rs2. However when I
run this, I get the following error as I...
|
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
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
|
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...
|
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,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |