I was told that i could make the database invisible with Shell Attrib
but neither ‘Shell “Attrib ” & ANewDB & ” +h”
nor
Shell “Attrib +h”
give any results.
What can i add on my code?
Private Sub Command2_Click()
Call ANewDB(“c:BENewDB.mdb”)
‘Shell “Attrib ” & ANewDB & ” +h”
Shell “Attrib +h”
End Sub
Function ANewDB(tName As String)
Dim wsp As Workspace, db As Database
Dim db2 As Database
Set db = CurrentDb
Set wsp = DBEngine.Workspaces(0)
Set db2 = wsp.CreateDatabase(tName, dbLangGeneral)
db2.Close
End Function