Re: Dynamic dimming
- From: "George Nicholson" <GeorgeNJunk@xxxxxxxxxxx>
- Date: Wed, 17 Oct 2007 17:00:27 -0500
reusing the ssql variable is fine.
ssql's value *at the time a recordset is opened* is all that matters. the
recordset doesn't maintain any kind of reference/pointer back to the
variable.
HTH,
"Biggles" <Biggles@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E212CD79-1FFF-4EC6-BA34-7F75F1CE60A6@xxxxxxxxxxxxxxxx
Thanks Dirk, I will use that method.
I posted the previous before I ran to a meeting, so now I have a follow up
question. Should I use different SSQL statements if I want to have
multiple
recordsets open, i.e.
SSQL1 = "Select ..."
RS1.openrecordset ssql1 'this needs to stay open
ssql2 = "Select ... "
RS2.openrecordset ssql2 'this needs to stay open as well
or is this method below courting danger:
SSQL1 = "Select ..."
RS1.openrecordset ssql1 'this needs to stay open
ssql1 = "Select ... "
RS2.openrecordset ssql1
Thanks.
--
Yours Fictionally, Biggles
"Dirk Goldgar" wrote:
In news:7561626A-1492-47AC-9936-844D28C00102@xxxxxxxxxxxxx,
Biggles <Biggles@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I wasn't even sure what to search this on, but can I do this?:
v_ctr = 1
Do Until v_ctr > 3
dim (ssql & v_ctr) as String
Loop
instead of:
dim ssql1 as string
dim ssql2 as string
dim ssql3 as string
No. But you can do this:
Dim ssql(1 To 3) As String
.... and then refer to the individual elements of the array using
subscripts.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
.
- References:
- Re: Dynamic dimming
- From: Dirk Goldgar
- Re: Dynamic dimming
- Prev by Date: RE: Print multiple copies of Word doc
- Next by Date: Re: msgbox multiline
- Previous by thread: Re: Dynamic dimming
- Next by thread: Re: How to search for vbCRLF within a string
- Index(es):
Relevant Pages
|
|