473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 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 26325
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,834 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,834 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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.