I'm using something like the following to create an access database. I would like to add a password programmatically. Is it even possible? All the examples I found suggest doing it in access, however for my needs that won't work. Any help will be greatly appreciated.
Thanks,
Harold
***You can't change your past, but you can change your future***
Code:
Dim db As Database
Dim td As TableDef
Dim f1 As Field
'Create the database
Set db = CreateDatabase(App.Path & "\sonic.mdb", dbLangGeneral)
'Create First Table
Set td = db.CreateTableDef("EmployeeInfo")
'Add Fields via Custom Sub
AddField "Employee #"
AddField "Last Name"
AddField "First Name"
AddField "Middle Initial"
AddField "Address"
AddField "City"
AddField "State"
AddField "Zip Code"
AddField "Pay Rate"
AddField "SSN"
AddField "Active"
AddField "Phone Number"
db.TableDefs.Append td
db.Close
Thanks,
Harold
***You can't change your past, but you can change your future***