Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing Code to a module automatically

Status
Not open for further replies.

ricwat

Programmer
May 30, 1999
7
0
0
GB
When a database is opened for the first time I want to be able to write a new global constant variable to a module. If after a time no one uses the database I want to remove this variable. I want the whole process to be VBA and linked to a startup form.<br>
<br>
Is this possile?
 
Interesting idea.<br>
<br>
From what I can tell, Access hides source VBA code. There are a couple of system tables that refer to modules but I have not been able to figure out how to use them. It would be nice if you could access & update the system tables through code.<br>
<br>
With VB5 you could potentially edit the .BAS text file through code...<br>
<br>
I would suggest re-thinking your problem. Maybe you should have a table of system variables. Your start-up form could read the table & set global variables as necessary.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top