I inherited a database that was not split (maybe this is why). I'm trying to split it and I ran into a problem. I split a version of the database that is working perfectly and then get an error on one of the forms. Obviously, splitting the database is the cause.
So, the form essentially has a list of "Modules" (not related to VBA ones). When you select the module, it looks up the corresponding name in the table and displays it on the form (and you can then select that module to view). This gives me an error in the split db.
The error is run-time error 3251 "operation is not supported for this type of operation."
The lookup table in question is just two columns: "table_ID" with the Module name (i.e. Module A) and "table_name" with the description (i.e. Mood). I checked and the tables themselves are exactly the same between the split and non-split versions. In fact, I even replaced the table in the split version with the non-split one and it didn't change anything. So, something else went wrong.
The code block in question is below. I've indicated the line that gives an error :
Hopefully, everything I said is clear. Let me know if it isn't.
So, the form essentially has a list of "Modules" (not related to VBA ones). When you select the module, it looks up the corresponding name in the table and displays it on the form (and you can then select that module to view). This gives me an error in the split db.
The error is run-time error 3251 "operation is not supported for this type of operation."
The lookup table in question is just two columns: "table_ID" with the Module name (i.e. Module A) and "table_name" with the description (i.e. Mood). I checked and the tables themselves are exactly the same between the split and non-split versions. In fact, I even replaced the table in the split version with the non-split one and it didn't change anything. So, something else went wrong.
The code block in question is below. I've indicated the line that gives an error :
Code:
If IsNull(SCIDList.Value) Then
Else
Set recSCIDName = CurrentDb.OpenRecordset("SCID III ListBox Names")
'This is the index method of searching. It only works with tables that DO NOT have a primary key
'and have the index property set to YES with no DUPLICATES
recSCIDName.Index = "table_ID" 'this line gives error
recSCIDName.Seek "=", SCIDList.Value
SCIDName = recSCIDName("table_name")
recSCIDName.Close
End If