Not a valid account name or password
***** ON LOAD -- SOURE CODE ******
Expand|Select|Wrap|Line Numbers
- strProvider = "Provider=Microsoft.Jet.OLEDB.4.0;"
- strSource = "Data Source=" & App.Path & "\MYDATABASE.MDB;UserID=UNKNOWN VALUE;Password=mypassword"
- ' Nothing I put into UserID in the above line appears to work
- ' If I remove "UserID=" get same error.
- Set rstConnRecordset = New ADODB.Connection
- strConnectionRecordset = strProvider & strSource & "Persist Security Info=False"
- rstConnRecordset.Open strConnectionRecordset
- ' Am getting error at above line, when running program
- Set rstRecord = New ADODB.Recordset
- With rstRecord
- .ActiveConnection = rstConnRecordset
- .CursorLocation = adUseClient
- .CursorType = adOpenKeyset
- .LockType = adLockOptimistic
- .Open "MYFORM"
- ' above line loads one of two database' involved, each called from separate
- ' routines.
- End With
- If Not rstRecord.BOF And Not rstRecord.EOF Then
- rstRecord.Sort = "RecNum ASC"
- rstRecord.Requery
- Set dgRecordNo.DataSource = rstRecord
- End If
Any assistance will be most appriciated.