Ok, going from Excel to Access! Check this out:
http://www.erlandsendata.no/english/index.php?d=envbadacexportado
This too:
http://www.erlandsendata.no/english/index.php?d=envbadacexportdao
As for the password, I'm not sure how that will work. I've used passwords
on some projects, but if anyone serious about breaking in, that person
already knows how to defeat the password. I found this on an old pose at
this same DG:
you may try this macro to know if a table exist
Dim cnn As New ADODB.Connection
Dim rsT As ADODB.Recordset
Dim Verif As Boolean
Dim dbName As String
Set cnn = New Connection
dbName = ("C:\Data\MYDataBase1.mdb")
With cnn
..Provider = "Microsoft.Jet.OLEDB.4.0"
..Mode = adModeWrite
..Properties("Jet OLEDB
![Big Grin :D :D](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
atabase Password") = "abc"
..Open dbName
End With
Set rsT = cnn.OpenSchema(adSchemaTables)
Verif = False
While Not rsT.EOF
If rsT.Fields("TABLE_NAME") = "MYTABLE" Then Verif = True
rsT.MoveNext
Wend
If Verif = False Then
MsgBox "The Table does not Exist ."
Else
MsgBox "the table exist"
End If
cnn.Close
Set cnn = Nothing
Set rsT = Nothing
Can you work with that?
HTH,
Ryan---