hello,
This problem is driving me crazy!
Dim db As dao.Database
Dim qdf As dao.QueryDef
Set db = CurrentDb
Set qdf = db.CreateQueryDef("hello", "select * from cctv_sites")
DoCmd.OutputTo acOutputQuery, "hello", acFormatHTML
I am getting an invalid argument...