J
Jean
Hi,
I am trying to convert my MS ACCESS 97 MDB to MS ACCESS 2000.
I made sure that Microsoft DAO 2.5/3.5 Compatibility Library is loaded
(checked), but not Microsoft DAO 3.51 Compatibility Library nor DAO 3.6
Compatiblity Library.
At run time, this line code :
Set rsMyRS = dbMyDB.OpenRecordset("Database Data Changes", dbOpenDynaset)
gives this error message " Run Time Error - 13 Type Mismatch " . The table
Database Data Changes is a valid working table. The login name do have full
admin rights.
Below is the full code. Any suggestion is welcome.
Thanks
Jean
----------------------------------------------------------------------------
---------------
Dim dbMyDB As Database
Dim rsMyRS As Recordset
If Me![records already created] = 0 Then
Me![records already created] = -1
Me![Created by Curator] = -1
Me![Who created record] = CurrentUser()
Else
Me![Last Date Change] = Now()
Set dbMyDB = CurrentDb
'''''''''''''''''' Problem starts here ''''''''''''''''''''''''
Set rsMyRS = dbMyDB.OpenRecordset("Database Data Changes",
dbOpenDynaset)
rsMyRS.AddNew
rsMyRS("Table Name") = "FunTable"
rsMyRS("Field Name") = "Artist Code"
rsMyRS("Record ID") = Me![ID]
rsMyRS("Change Date") = Now()
rsMyRS("User") = CurrentUser()
rsMyRS("New Value") = Me![Artist code]
rsMyRS.Update
rsMyRS.Close
dbMyDB.Close
End If
I am trying to convert my MS ACCESS 97 MDB to MS ACCESS 2000.
I made sure that Microsoft DAO 2.5/3.5 Compatibility Library is loaded
(checked), but not Microsoft DAO 3.51 Compatibility Library nor DAO 3.6
Compatiblity Library.
At run time, this line code :
Set rsMyRS = dbMyDB.OpenRecordset("Database Data Changes", dbOpenDynaset)
gives this error message " Run Time Error - 13 Type Mismatch " . The table
Database Data Changes is a valid working table. The login name do have full
admin rights.
Below is the full code. Any suggestion is welcome.
Thanks
Jean
----------------------------------------------------------------------------
---------------
Dim dbMyDB As Database
Dim rsMyRS As Recordset
If Me![records already created] = 0 Then
Me![records already created] = -1
Me![Created by Curator] = -1
Me![Who created record] = CurrentUser()
Else
Me![Last Date Change] = Now()
Set dbMyDB = CurrentDb
'''''''''''''''''' Problem starts here ''''''''''''''''''''''''
Set rsMyRS = dbMyDB.OpenRecordset("Database Data Changes",
dbOpenDynaset)
rsMyRS.AddNew
rsMyRS("Table Name") = "FunTable"
rsMyRS("Field Name") = "Artist Code"
rsMyRS("Record ID") = Me![ID]
rsMyRS("Change Date") = Now()
rsMyRS("User") = CurrentUser()
rsMyRS("New Value") = Me![Artist code]
rsMyRS.Update
rsMyRS.Close
dbMyDB.Close
End If