|
-
Jun 3rd, 2001, 03:04 PM
#1
Thread Starter
Lively Member
Has object been set?
Code:
Static myDb As Database, myRs As Recordset
Set myDb = whatever
Set myRs = whatever
Now, when I enter this procedure, I want to find out if the recordset has been set already. If not, I want to set it. If so, I want to do some stuff with it. Basically, we're talkin' persistent recordsets. That's possible, right?
I thought I could put a
Code:
If myRs = Nothing Then
in before the Set myRs statement, but that would be too easy, so how?
The point of all this (if you're at all interested) is that I want to create an RS when the user loads the form, consisting of, say 50 records. There is a drop down on the form where they can select a filter of that RS. So I want to load the whole thing first time, but set a filter on the existing RS (which is a random sample of the full database) on subsequent calls.
-
Jun 3rd, 2001, 03:09 PM
#2
Addicted Member
-
Jun 3rd, 2001, 03:09 PM
#3
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jun 3rd, 2001, 03:14 PM
#4
Thread Starter
Lively Member
Thanks people. God, I suck
-
Jun 4th, 2001, 02:54 AM
#5
Static Recordsets.... what is the world coming to? 
- gaffa
-
Jun 4th, 2001, 09:18 AM
#6
Thread Starter
Lively Member
I know!
Seemed like a good idea at the time
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|