473,471 Members | 4,650 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Access Error Query must have atleast one destination field

22 New Member
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 opened the Form again, it came up with this error "Query must have atleast one destination field", i had been coming across this error several times and could not find a solution, typically i just pasted the query and it would be fine as long as i dont type in or try anything on the form. but Since more than 10 users use this application now , everyone gets this error and ď really dont know how to manage this.how to handle this error?

Pls help..Thanks so much!!
Feb 29 '08 #1
5 6445
Stewart Ross
2,545 Recognized Expert Moderator Specialist
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 opened the Form again, it came up with this error "Query must have atleast one destination field", i had been coming across this error several times and could not find a solution, typically i just pasted the query and it would be fine as long as i dont type in or try anything on the form. but Since more than 10 users use this application now , everyone gets this error and ď really dont know how to manage this.how to handle this error?

Pls help..Thanks so much!!
Hi jaishu. One possibility is that the form has an On Open, On Load or On Close event that is mistakenly trying to run a query that has no output fields. Check the event properties of the form check to see if there is an On Open, On Load or On Close event listed. If so, check what the event is doing - it could be a macro which is opening a dud query, or a VBA routine doing something similar.

If it is not an event handler, the remaining possibility is some kind of error in the recordsource of the form somewhere, but this is unlikely if you are seeing correct data in your form. The recordsource would have to be a query for it to be a potential problem; if the recordsource is a table you can rule it out as of any concern.

Let us know what you find.

-Stewart
Feb 29 '08 #2
jaishu
22 New Member
hi,

my form load doesnt have any other stmt other than(enabling the command button)
[code]
Enter.enabled =true
[code ends]

and no other form close or any other event.. the form is locked and cannot be edited (the table cannot be modified) its just a read only kind of Application.

Not only here i developed a few Access application and i ve been seeing this error, this is getting serious now because ( users are more ) and is just a read-only.

Thanks very much for your suggestions, pls let me know if you have any other ideas, i m researching on this right now.......

Thanks!
Feb 29 '08 #3
jaishu
22 New Member
Hi ,

i found that this error pops up due to change in the query(recordsource for the form).although the form is locked, if ,other options such as sorting is enabled and if there is any such operation on the form such as filter, sorting data etc, the query behind is changed (though not able to check) and if the form is closed and opened, it comes up with this message...
"query must have one destination field......................"
i m trying to do some kind of lock..but any help on how to handle this is appreciated...

Pls..
Thanks!
Mar 5 '08 #4
Stewart Ross
2,545 Recognized Expert Moderator Specialist
Hi ,

i found that this error pops up due to change in the query(recordsource for the form).although the form is locked, if ,other options such as sorting is enabled and if there is any such operation on the form such as filter, sorting data etc, the query behind is changed (though not able to check) and if the form is closed and opened, it comes up with this message...
"query must have one destination field......................"
i m trying to do some kind of lock..but any help on how to handle this is appreciated...

Pls..
Thanks!
Hi jaishu. Sorting or filtering in a form does not normally cause a modification to the recordsource itself. I doubt we can resolve this without seeing the form concerned and looking at the query dependencies that underly it. If it would help I am happy to check your database for you, which you could send to me by e-mail. If this is suitable please send me a PM to confirm and I will send you my e-mail address accordingly.

-Stewart
Mar 7 '08 #5
NeoPa
32,556 Recognized Expert Moderator MVP
Jaishu,
Consider first attaching the (zipped version of the) database to this thread.
Also, in case it can help any, please review Example Filtering on a Form for further understanding of filtering.
Mar 8 '08 #6

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

Similar topics

3
by: Mohammed Mazid | last post by:
Can anyone please help me here? Basically I have modified the source code and understood it but when I update a record in the db using a JSP, it gives me an error "The flight you selected does...
3
by: tony bergstrom | last post by:
Ok, so I have a Form. It is a continuous form. In the header one selects what person to view data for. Once the person is selected, the travel information that has been budgeted for the year...
7
by: Ariel | last post by:
I have a question that I'm hoping someone here can answer. Let's say I have two fields which have a beginning number and an ending number. What I'd like to do is have Access generate a list of...
2
by: Stan Smith | last post by:
I couldn't decide which newsgroup to post this in so I thought I would start here. I can create an "OLE Object" field manually in Microsoft Access and insert an Excel spreadsheet or a Word...
2
by: hardik | last post by:
hi friends, i am really surprized the way access behaves in date fields i mean it's all ok when you have us time zone or us servers but if you have diffrent timezone like uk then access creates...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
5
by: bhodgins | last post by:
Hi, I am new on here, and had a newbie question that I am stumped with. I am not new to access, but am new to VB. I am trying to export BLOBs from a field called photo to external jpeg files. I...
3
by: masonic35and7 | last post by:
I work for a school district, and I have just imported 6 Excel worksheets into Access 2007. Now I have 6 different tables. In each table all the fields are the same. I need the easiest way to...
6
by: ashes | last post by:
Hi, I am creating an ecommerce website using Microsoft Visual Studio, VB.Net and MS Access 2003. I am new to VB.Net When someone wants to register on the website, they fill out a form and the...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.