Private Sub Form_Load()
With Data1
.DatabaseName = App.Path + "\mydbase.mdb"
.RecordSource = "Select * from usertable"
.Refresh
End With
End Sub
--------------------------------------------------------------------------------
"mydbase.mdb" is created in Access97
im using a standard Data Component for "Data1"
And DBGrid Component for "DBGrid1"
DBGrid1 Properties is set to:
DataSource = Data1
--------------------------------------------------------------------------------
everything works fine but if i try set a password to my database
it gives me a
Run-Time error '3031': Not a valid Password.
does anybody knows the code to be able to access my database in this point
or can somebody help me in the code so that i may access my database with a password.
i must not make any major changes in the codes.
thanks in advance...