472,354 Members | 1,591 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,354 software developers and data experts.

Destination Field?

JamesDC
66
Hey all,

I'm having a big problem right now...

I'm using Access 2002 with my Database.

The program was running fine yesterday, and I went to use it today and found that all my Reports would come up blank. SO I checked my queries and I get this error:

Query Must Have At Least One Destination Field.

I don't know what this means, or why it happened. Can somebody please shed some light on this?

Thanks,

James

EDIT: Opening the queries in Design view shows that the Queries have no fields anymore :( what has caused this? Is it fixable?
Mar 22 '07 #1
7 26165
JamesDC
66
Alright, I freaked out :S

I copied the SQL from the blank query from a backup and now it's running again.

I'd just like to know why the query could suddenly go blank like that? Does this happen often or maybe somebody intentionally did it... which I doubt.
Mar 22 '07 #2
ADezii
8,832 Expert 8TB
Hey all,

I'm having a big problem right now...

I'm using Access 2002 with my Database.

The program was running fine yesterday, and I went to use it today and found that all my Reports would come up blank. SO I checked my queries and I get this error:

Query Must Have At Least One Destination Field.

I don't know what this means, or why it happened. Can somebody please shed some light on this?

Thanks,

James

EDIT: Opening the queries in Design view shows that the Queries have no fields anymore :( what has caused this? Is it fixable?
Query Must Have At Least One Destination Field typically occurs whenever there are no Fields in the QBE Grid. Queries do not typically go blank on their own. You must have inadvertantly deleted the SQL Statement while in SQL View.
Mar 22 '07 #3
JamesDC
66
That's the thing I never opened the query. My database is set up that you can't get access to the back matter (DB, querries, etc.) without doing a certain procedure. I was just in the front section, the forms which allow one to open the reports...

oh well it's fixed now, it was just scary
Mar 22 '07 #4
webcat
13
i have this same issue where my query is deleted.

very interested to know why and if there was ever a solution...

it happens over and over again, i have to keep a backup of all my SQL queries elsewhere and paste them back in! this is NOT good.. !

thanks
Nov 8 '07 #5
ADezii
8,832 Expert 8TB
Alright, I freaked out :S

I copied the SQL from the blank query from a backup and now it's running again.

I'd just like to know why the query could suddenly go blank like that? Does this happen often or maybe somebody intentionally did it... which I doubt.
Have you made any changes to the Tables which make up the Queries?
Nov 8 '07 #6
yinda
1
I'm having the same problems with my db's.

The db is running everyone morning for reporting. But everytime after the reports have run i have to paste my Backup DB over the db in the right folder so that it can run again the next day. If i don't do that the db will not run because there are query's in it that have no data in it. It gives the error Query must have at least one destination field.

I really need some help with this because this sucks bigtime. I have checked everywhere for a solution but just can't find anything.

kind regards
Nov 30 '07 #7
Did you ever resolve your problem? I had the same problem and I finally figured it out. I was using basic SQL, and when I clicked 'design view' access couldn't represent the query. If that happens to you as well, you need to use the expression builder to represent the query in access language. I just double clicked 'criteria' in the query design window, and built the expression. For example, I originally had:

SELECT table1.field1
FROM table1 INNER JOIN table2 on table1.field1 LIKE table2.field1

This query would cause the error and become cleared, even though it worked. I used the expression builder to build the "LIKE" expression, and it turned out to be:


SELECT table1.field1
FROM table1 INNER JOIN table2 on table1.field1 = table2.field1
WHERE ((([table1]![field1] LIKE [table2]![field1])));

Just make sure your query can be represented in the query builder, and you shouldn't have any problems.


I'm having the same problems with my db's.

The db is running everyone morning for reporting. But everytime after the reports have run i have to paste my Backup DB over the db in the right folder so that it can run again the next day. If i don't do that the db will not run because there are query's in it that have no data in it. It gives the error Query must have at least one destination field.

I really need some help with this because this sucks bigtime. I have checked everywhere for a solution but just can't find anything.

kind regards
Oct 24 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Bennett Haselton | last post by:
I'm working on an ASP.Net project where I want to test code on a local machine using a local database as a back-end, and then export it to the production machine where it uses the hosting...
5
by: Hank | last post by:
My Access 2000 code has been running for several years in our main plant. Now we need to install it, as a stand-along application, at remote sites, some of which are out of state. My problem is...
4
by: Regnab | last post by:
I'm automating the import of all text files into Access from a source folder. I was getting the "Field 'F1' doesn't exist in destination table" error, so I checked it out on the net and it said to...
1
by: tommalia | last post by:
I'm trying to write an XSLT to convert an XML document from one schema to another. The destination XML schema has an optional State element. The element can be left out, but if it's present...
1
by: v.maggs | last post by:
Folks, I have two tables, and , both containing a field with the same name, . This field defines the primary/foreign key relationship between the two tables. It's the primary key for . I am...
4
by: jiang.haiyun | last post by:
Hello all, when i import SOAPpy, the python crashed and print out 'usage:copy source destination'. As follows: ############################ haiyun# python Python 2.4.1 (#2, Mar 28 2006,...
43
by: Frodo Baggins | last post by:
Hi all, We are using strcpy to copy strings in our app. This gave us problems when the destination buffer is not large enough. As a workaround, we wanted to replace calls to strcpy with strncpy....
5
by: jaishu | last post by:
Hi , I am using a form based on a query. The form is locked and the fields are not editable, but when i just tried typing something, the contents on the form didnt change, but when i closed and...
10
newnewbie
by: newnewbie | last post by:
Please help me with this mystery. I did the Union query to put together some tables...it ran once, showing me the data. Tried to run it for the second time and it could not find one of the tables. I...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.