J
John Keith
I have an autoexec macro that runs the following code to set the titlebar.
Public Function All940bDateCreated() As Date
Dim db As Object
Dim sTitle As String
Set db = OpenDatabase("N:\IT\SHARED\All940bDaily.MDB")
All940bDateCreated = db.TableDefs("All940b").DateCreated
db.Close
Set db = Nothing
Set db = Application.CurrentDb
sTitle = "Student Data as of " & All940bDateCreated
db.Properties("AppTitle") = sTitle
Application.RefreshTitleBar
db.Close
Set db = Nothing
End Function
My data is stored in a table in a database on the network drive.
My front-end is stored on my local machine for which I am the only developer.
I had originally negelcted to put the 2nd db.close statement which I thought
had caused shared access which prevented me from making any design changes.
By copying the database I was able to save the 2nd db.close statement;
however this did not solve the problem. I am still locked out of making
design changes.
Is there an alternate way open currentdb objects that will not cause this
lock-out?
or maybe that code isn't the problem,
Is there a way to tell what other process is really the culprit?
Public Function All940bDateCreated() As Date
Dim db As Object
Dim sTitle As String
Set db = OpenDatabase("N:\IT\SHARED\All940bDaily.MDB")
All940bDateCreated = db.TableDefs("All940b").DateCreated
db.Close
Set db = Nothing
Set db = Application.CurrentDb
sTitle = "Student Data as of " & All940bDateCreated
db.Properties("AppTitle") = sTitle
Application.RefreshTitleBar
db.Close
Set db = Nothing
End Function
My data is stored in a table in a database on the network drive.
My front-end is stored on my local machine for which I am the only developer.
I had originally negelcted to put the 2nd db.close statement which I thought
had caused shared access which prevented me from making any design changes.
By copying the database I was able to save the 2nd db.close statement;
however this did not solve the problem. I am still locked out of making
design changes.
Is there an alternate way open currentdb objects that will not cause this
lock-out?
or maybe that code isn't the problem,
Is there a way to tell what other process is really the culprit?