Hey everyone,
First I am using a97 on an nt4.0 box. Secondly, I have a program that will create a table upon open everyday. Here is the problem I would like the program to (once it realized that the daily table has not been created) switch the current user to exclusive user.
Here is what I have done so far. When the "first" user of the day opens the database. the database checks to see if the daily table already exists (of course it doesn't) so I launch a little vb program that I made it closes the database ,times for 5 seconds then re - opens the database (in exclusive mode).
So have you found my problem yet? When the database opens for the second time, it looks for the table of course it doesn't find it. Then it launches my vb program which times for 5, never mind you get the point.
What I would like to know is. Either is there a way to tell if the database has been opened exclusively or is there a way to change the shared/exclusive property on the fly?<perferred method if available
Any help would be greatly appreciated
Thanks
Scoty :![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
"Learn from others' mistakes. You could not live long enough to make them all yourself."
-- Hyman George Rickover (1900-86),
First I am using a97 on an nt4.0 box. Secondly, I have a program that will create a table upon open everyday. Here is the problem I would like the program to (once it realized that the daily table has not been created) switch the current user to exclusive user.
Here is what I have done so far. When the "first" user of the day opens the database. the database checks to see if the daily table already exists (of course it doesn't) so I launch a little vb program that I made it closes the database ,times for 5 seconds then re - opens the database (in exclusive mode).
So have you found my problem yet? When the database opens for the second time, it looks for the table of course it doesn't find it. Then it launches my vb program which times for 5, never mind you get the point.
What I would like to know is. Either is there a way to tell if the database has been opened exclusively or is there a way to change the shared/exclusive property on the fly?<perferred method if available
Any help would be greatly appreciated
Thanks
Scoty :
"Learn from others' mistakes. You could not live long enough to make them all yourself."
-- Hyman George Rickover (1900-86),