title: Why do i get error "query must have atleast one destination field" in access?
body: <p>I get the error "query must have atleast one destination field" when i click a button in the form.</p>
  
  <p>On click of button VB Code:
      Dim stDocName As String, valore As Integer </p>
  
  <pre><code>stDocName = "Solleciti_Odl_Rilasciati_per_form_new_weekly_005_Del_dup_records"
  
  DoCmd.OutputTo acOutputQuery, stDocName, acFormatXLS
  
  valore = MsgBox("Estrazione Dati Completata!", vbInformation)
  </code></pre>
  
  <p>on clicking the button, I get a dialog box for document "Solleciti_Odl_Rilasciati_per_form_new_weekly_005_Del_dup_records"
   to be saved or opened. after giving ok, the above error comes.</p>
  
  <p>Please give me idea why we get this error.</p>