Re: looping through recordset
- From: "Jeff Boyce" <nonsense@xxxxxxxxxxxx>
- Date: Thu, 23 Apr 2009 08:25:40 -0700
Mark
"how" depends on "what", and I don't understand what (data, or data/table
structure) you are working with.
I asked whether you considered using a query to see if you had considered
using a query ... and I don't know if it is appropriate because I don't know
enough about your situation yet.
Regards
Jeff Boyce
Microsoft Office/Access MVP
"Mark" <cmd@xxxxxxxxxxxx> wrote in message
news:ekl54q%23wJHA.1240@xxxxxxxxxxxxxxxxxxxxxxx
Jeff,
Not sure I understand the question. Are you suggesting an expression in a
query? Maybe I've used the wrong language -- "recordset", or just didn't
explain very well what I'm trying to do.
Mark
"Jeff Boyce" <nonsense@xxxxxxxxxxxx> wrote in message
news:%230NkML5wJHA.4104@xxxxxxxxxxxxxxxxxxxxxxx
Markthings
"looping through a recordset" is a very compute-intensive way to get
done... sometimes the only way, but then again ...
Have you looked into using a query to process the recordset as a set?
Regards
Jeff Boyce
Microsoft Office/Access MVP
"Mark" <cmd@xxxxxxxxxxxx> wrote in message
news:%234dMm04wJHA.5836@xxxxxxxxxxxxxxxxxxxxxxx
Hi all,
What would be an efficient way within a function to loop through a
recordset
of distinct text values (record 1 = text1, record 2 = text2, etc.) with
the
result displayed as follows:
If only one record:
fncMyFunction = "text1." (that's text1 followed by a period)
If multiple records and rst.recordcount = n:
fncMyFunction = "text1, text2, ... , and text-n." (commas separate each
record except for the last which is preceded with the word "and" and is
followed by a period).
[the function produces a string which can be incorporated elsewhere]
Thanks for any advice.
Mark
.
- References:
- looping through recordset
- From: Mark
- Re: looping through recordset
- From: Jeff Boyce
- Re: looping through recordset
- From: Mark
- looping through recordset
- Prev by Date: RE: Print to PDF in VBA Code
- Next by Date: RE: Export Table to fixed length txt file
- Previous by thread: Re: looping through recordset
- Next by thread: Re: looping through recordset
- Index(es):
Relevant Pages
|