T
Tim Schiermeyer
What models should VBA for Access 2000 have? Should the DAO object model be
included? I tried to run the following code and failed. But I got this from
an example in the help pages:
Sub AlterTableX1()
Dim dbs As Database
' Modify this line to include the path to Northwind
' on your computer.
Set dbs = OpenDatabase("Northwind.mdb")
' Add the Salary field to the Employees table
' and make it a Money data type.
dbs.Execute "ALTER TABLE Employees " _
& "ADD COLUMN Salary MONEY;"
dbs.Close
End Sub
I got the error 'user_defined type not defined' for the Database
ObjectDataType. What is the alternative to implementing this code to work in
Access 2000? Also if the DAO object model is not included in Access 2000 is
there an updated help window that remove this type of misinformed code?
included? I tried to run the following code and failed. But I got this from
an example in the help pages:
Sub AlterTableX1()
Dim dbs As Database
' Modify this line to include the path to Northwind
' on your computer.
Set dbs = OpenDatabase("Northwind.mdb")
' Add the Salary field to the Employees table
' and make it a Money data type.
dbs.Execute "ALTER TABLE Employees " _
& "ADD COLUMN Salary MONEY;"
dbs.Close
End Sub
I got the error 'user_defined type not defined' for the Database
ObjectDataType. What is the alternative to implementing this code to work in
Access 2000? Also if the DAO object model is not included in Access 2000 is
there an updated help window that remove this type of misinformed code?