I have used the Dim dbs as Database in my code in '95, '97 but I am not getting that option in '2000. I get Compile error: User-defined type not defined. The Help sections use database as a valid parameter. Why is it not working for me?
Code example:
Dim dbsmds as database, rst as recordset
set dbsmds = dbengine.workspaces(0).opendatabase ("c:\my documents\Biller"
set rst = dbsmds.openrecordset("Bill detail"
with rst
.addnew
![newmr]=forms![mdsinfo]![id]
![fac]=forms![mdsinfo]![facility]
.update
end with
This code works in earlier versions of Access but not 2000. Any help would be appreciated since I am converting everything over to 2000. Will this continue to be a problem in the new OfficeXP version??
Code example:
Dim dbsmds as database, rst as recordset
set dbsmds = dbengine.workspaces(0).opendatabase ("c:\my documents\Biller"
set rst = dbsmds.openrecordset("Bill detail"
with rst
.addnew
![newmr]=forms![mdsinfo]![id]
![fac]=forms![mdsinfo]![facility]
.update
end with
This code works in earlier versions of Access but not 2000. Any help would be appreciated since I am converting everything over to 2000. Will this continue to be a problem in the new OfficeXP version??