Dim myConnection03 As ADODB.Connection
Set myConnection03 = CurrentProject.Connection
Dim myRecordset03 As New ADODB.Recordset
myRecordset03.ActiveConnection = myConnection03
myRecordset03.Open "TempBin", , adOpenDynamic, adLockOptimistic
I keep getting the error message
"Run time error '13 Type Mismatch"
on the line of VBA code below. If I delete the line and retype it the program runs through ok. It hasn't been a disaster yet, but has me worried. Any ideas why this is happening?
"Set myConnection03 = CurrentProject.Connection"
Set myConnection03 = CurrentProject.Connection
Dim myRecordset03 As New ADODB.Recordset
myRecordset03.ActiveConnection = myConnection03
myRecordset03.Open "TempBin", , adOpenDynamic, adLockOptimistic
I keep getting the error message
"Run time error '13 Type Mismatch"
on the line of VBA code below. If I delete the line and retype it the program runs through ok. It hasn't been a disaster yet, but has me worried. Any ideas why this is happening?
"Set myConnection03 = CurrentProject.Connection"