M
Mark A. Sam
Hello,
Does DAO not work in Access Data projects?
God Bless,
Mark A. Sam
Does DAO not work in Access Data projects?
God Bless,
Mark A. Sam
Sylvain Lafontaine said:The major part of this code is only used to automatically build the ODBC
connection string and will work 90% of the time. This code also make the
assumption that the ADP project is already connected to the backend
SQL-Server.
Sylvain Lafontaine said:For Update and other queries that modify the database, you also need to add
the parameter « dbSeeChanges » and for reasons that I don't remember, I also
add the parameter « dbFailOnError » :
Sylvain Lafontaine said:Also, don't forget that you need to specify to ask for DAO objects in the
VBA code:
Dim db As DAO.Database
Set db = DAODatabase()
Dim rs As DAO.Recordset
Set rs = db.OpenRecordset (sql_string, dbOpenDynaset, dbSeeChanges)