Hi,
I have a vba code that open an access table. Then using a index (3 fields in the index), I can move record by record and perform change in some fields.
This week I have migrate this table to a SQL SERVER Dataase and the vba code in the access database don't work anymore because the index belongs to an external database.
I can open from code both the SQL SERVER Database and table
by:
Set SQLDB = DBEngine.Workspaces(0).OpenDatabase("", True, False, ODBCstring)
set SQLTable=SQLDB.Openrecordset("ODBCTable")
but SQLTable.Index is not valid
I have a vba code that open an access table. Then using a index (3 fields in the index), I can move record by record and perform change in some fields.
This week I have migrate this table to a SQL SERVER Dataase and the vba code in the access database don't work anymore because the index belongs to an external database.
I can open from code both the SQL SERVER Database and table
by:
Set SQLDB = DBEngine.Workspaces(0).OpenDatabase("", True, False, ODBCstring)
set SQLTable=SQLDB.Openrecordset("ODBCTable")
but SQLTable.Index is not valid