this is a function to create a .mdb on the fly for you:
Public Function CreateAccessDatabase( _
ByVal DatabaseFullPath As String) As Boolean
Dim bAns As Boolean
Dim cat As New ADOX.Catalog()
Try
'Make sure the folder
'provided in the path exists. If file name w/o path
'is specified, the database will be created in your
'application folder.
Dim sCreateString As String
sCreateString = _
"Provider=Microsoft.Jet.OL
DatabaseFullPath
cat.Create(sCreateString)
bAns = True
Catch Excep As System.Runtime.InteropServ
bAns = False
'do whatever else you need to do here, log,
'msgbox etc.
Finally
cat = Nothing
End Try
Return bAns
End Function
'DEMO
' If CreateAccessDatabase("F:\t
' MsgBox("Database Created")
' Else
' MsgBox("Database Creation Failed")
' End If
Main Topics
Browse All Topics





by: AerosSagaPosted on 2004-10-29 at 07:39:01ID: 12444774
Ok so there about 8 questions in there, lol
1) if the crystal reports are getting mixed up then theres a problem with that routine
2) If you correctly authenticate your user, this should help
3) When they download the .mdb do they get the whole site, or does each user have his/her own .mdb
basically if you correct the existing design problems all should be well, but I would rethink the download.mdb bit.
I know your gonna have about a billion other questions, so I'll leave it at this for now and wait for your rebuttle.
Aeros