SilverBean
Programmer
I have this code fragment which is giving me fits under 6.0, and apparently worked fine under 4.0.
Dim myWS As Workspace
Dim myDB As Database
Dim myRecordset As Recordset
SET myDB = Workspaces(0).OpenDatabase(strDbName_Path)
SET myRecordset = myDB.OpenRecordset("Select * from tblMgeAcc", dbOpenSnapshot)
The Set myRecordset = is causing a type mismatch during run time under 6.0. This has been simplified and the intent is well hidden in what I present here, a Snap shot is all that is required it appears the logic just wants to examine some fields to see if a certain operation is legal/ makes sense.
The database being used is really very simple(*.MDB). It is a single user design and is not much more than a place to hold data. Hopefully I'm not running into any sharing, username, password type problems.
I can't contact the original genius behind this but I guess he is doing this instead of just using another hidden data control on the form. The concern is that he's done this in other areas so if 6.0 just needs more info or if some default thing is no longer legal now - that's a far simpler change then a major rework.
Most of the application is working fine so the database itself (MDB) might be pretty old (i.e., whatever was current around VB 4.0). Any chance the database itself could be causing the problem?