Hi,
I have a previous Access application (front end and back end) and all I do to reference a table is:
Dim test as recordset
Set test = currentdb.openrecordset("Table1")
I don't have any other variables pointing to the database.
Now I've always done it this way and it's always worked but my friend here on another computer always gets a "Type mismatch" error. I made sure he has all the same VBA references as me, but for some reason it still won't work on his PC.
Does anyone know what causes the currentdb to work? I use it because it's short and clean but is it a bad way of doing things?
Thanks.
I have a previous Access application (front end and back end) and all I do to reference a table is:
Dim test as recordset
Set test = currentdb.openrecordset("Table1")
I don't have any other variables pointing to the database.
Now I've always done it this way and it's always worked but my friend here on another computer always gets a "Type mismatch" error. I made sure he has all the same VBA references as me, but for some reason it still won't work on his PC.
Does anyone know what causes the currentdb to work? I use it because it's short and clean but is it a bad way of doing things?
Thanks.