How do i have to use the docmd.outputto command. I want to export my query (strSql = "SELECT * FROM Locaties;") to as HTML-fortmat with UTF-8. this command is started by a command button and i'am not using a template for my html-file.

Private Sub Start_Click()

Dim strSql As String, q As ac

strSql = "SELECT * FROM Locaties;"

DoCmd.OutputTo ("acOutputQuery, strSql, acFormatHTML , 'c:\temp\locatie.html', 0, 0 , utf-8")
End Sub