Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6838473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:36:05+00:00 2026-05-26T23:36:05+00:00

I get the error query must have atleast one destination field when i click

  • 0

I get the error “query must have atleast one destination field” when i click a button in the form.

On click of button VB Code:
Dim stDocName As String, valore As Integer

stDocName = "Solleciti_Odl_Rilasciati_per_form_new_weekly_005_Del_dup_records"

DoCmd.OutputTo acOutputQuery, stDocName, acFormatXLS

valore = MsgBox("Estrazione Dati Completata!", vbInformation)

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.

Please give me idea why we get this error.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:36:06+00:00Added an answer on May 26, 2026 at 11:36 pm
    1. The second parameter of DoCmd.OutputTo is the object to export.
      Are you sure that there is actually a query named Solleciti_Odl_Rilasciati_per_form_new_weekly_005_Del_dup_records in your Access database?
    2. If yes, does the query actually contain something (like, a SELECT query)?
      I just found out that I get exactly the same error as you (“query must have at least one destination field”) when I try to export a query that’s completely empty.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this query and I get error Operand should contain 1 column(s), whats
I get the following error in the query below: #1064 - You have an
I have some code which re-arranges some items on a form, but only one
I'm trying to execute a query but I get an error: Unknown table alias
while executing the following query, i get an error that there's an error in
If I pass an empty list into a JPA query, I get an error.
I am using following PHP code for trigger creation but always get error, please
Using Oracle 11g release 2, the following query gives an ORA-01790: expression must have
I am using SQLite. When I execute a query, I get error messages such
What is the best way to get error messages from a WF4 workflow back

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.