I wondered which was generally considered to be more efficient and/or better practice.
To run queries from DoCmd.OpenQuery
or
To run SQL code from cnn.Execute
If using SQL there are fewer objects (queries) in the database but I don't know if this is an advantage or otherwise. Equally it strikes me neither is particularly harder than the other to set up so which is best to use?
Am at a point in a new project where I could use either (I think) and would value any views on pros and cons.
Thanks
Malcy
To run queries from DoCmd.OpenQuery
or
To run SQL code from cnn.Execute
If using SQL there are fewer objects (queries) in the database but I don't know if this is an advantage or otherwise. Equally it strikes me neither is particularly harder than the other to set up so which is best to use?
Am at a point in a new project where I could use either (I think) and would value any views on pros and cons.
Thanks
Malcy