PDA

View Full Version : Persistant private data



mud2
10-28-2005, 12:04 PM
Haven't been here for a long time...almost "burned out"fighting with ACCESS:
Now:
How do I use an ACCESS table as Persistant private data in a class?

xCav8r
10-28-2005, 12:32 PM
Hey, mud, wb! :)

Could you, perhaps, rephrase that? What do you mean by persistent? Private? A form's class module? Another type of class? What do you want to do?

mud2
10-29-2005, 08:04 PM
I want to write a class, "UNIQUE" that has a method that generates a unique string and saves it to an ACCESS table.
(I have the method).
Then I can use such as
UNIQUE.Make to make the unique string,
UNIQUE.Check to look at the table to make sure there are no repeats
and so on

Class Unique
Private Table1 (Contains the unique strings)
Public Make()
Public Return().
etc
I want to be able to read this table after I close the program and then reopen it thus "persistent".

mud2
10-29-2005, 09:22 PM
With respect to my previous "Reply": I know that the snippet of a "Class' I included was wrong...that I've to write a Class Module...but the question remains the same. How to keep the private data in a class from one run to another.

xCav8r
11-01-2005, 03:09 PM
It sounds like you have a pretty good handle on what you want to do. I'm not sure where you need help. Writing the procedures? Making a class module? Using a class module? Getting data from a table using VBA?