473,406 Members | 2,352 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,406 software developers and data experts.

Query Not Working As It Should

Hi All,
Sorry to post another 'how to run a query' question but i have trawled the web and can not get my query to work.
If you can offer any help that would be great.
To make it easier for you to see where i have gone wrong i have attached my database, [ATTACH]AlphaOmegaHelp,[/ATTACH]for you to look at. (I would prefer it if you told me what to change rather than just uploading a fixed one so i can understand what i did wrong.)
Thank you in advance.

The Problem:
(The database should automatically open up onto the 'Main' form.)
I want to be able to click on the search tab and instead of the parameter boxes popping up i want to be able to type what i want to search into the form and click run query. I have tried to put into the query build/reference box the name of the text box i want it to search from but no luck.
I then want the results displayed into the table below the search boxes.

Thats part 1 which i need to get done.

Part 2 would be nice but not necessary if i cant get it to work.
I would like to be able to click on a record in the table on the 'All Garments' tab or in the 'Search' tab (when the query works)and then click on the 'Edit' tab and have the details from the record populate the form so i can change the box / qty etc of that item.(Or make the item name in the table a hyperlink to edit that record in the form view if that is easier???)

Any help would be great. The query working is the main thing thou. The query did work at one point but somehow I broke it trying to put it all together so if you can tell me what i did wrong that would make my day.

Thank You
Stephan
Attached Files
File Type: zip AlphaOmegaHelp.zip (62.2 KB, 35 views)
Mar 3 '15 #1

✓ answered by relicx2004

Just a quick response, your parameters are not correct.
It should be "[Forms]![Searchcriteria]![Textitem]" not "item",etc. As per the second question create a action query(insert query) when you click the Edit tab to populate the table that is connected to the EditGarments form.

4 1008
twinnyfo
3,653 Expert Mod 2GB
Stephan,

First, typically, we do not encourage posters to send their databases. Primarily, because many of us cannot open zip files or databases at work (where most of us actually work), but also out of security. We much rather prefer that you post the code/query that is causing the problem, so all can see the problem and all can benefit from working toward a solution.

That said, please post the code on your form and the query in question. It is also helpful to us if we know a little about he structure of your tables (Primary and foreign keys are essential--then any additional fields and field types that are pertinent to the discussion).

Finally, just because we can be a bit picky on this forum.... This post is really more of two specific questions, so, technically speaking, should be two separate threads. We request this, as others searching this site may have a specific question that specifically applies to one or the other of your questions. This allows them to properly search for assistance on their own projects.

Please, don't think that I am being dismissive to your question/problem. I would love to assist you on this issue, but request your assistance in posting a more descriptive question(s).

Thanks for your help!
Mar 3 '15 #2
Just a quick response, your parameters are not correct.
It should be "[Forms]![Searchcriteria]![Textitem]" not "item",etc. As per the second question create a action query(insert query) when you click the Edit tab to populate the table that is connected to the EditGarments form.
Mar 4 '15 #3
@twinnyfo. I've got the query running now and i'll post the other question again. Sorry i didn't know we weren't allowed to upload what we had done, just the code.
@relicx2004, Thank You, I've got the query running now which is great, i've yet to try the 'EditGarments action query' but i'm sure it will work so thank you for that as well.
Mar 8 '15 #4
NeoPa
32,556 Expert Mod 16PB
It's not so much that you're not allowed Stephan. Simply that it won't help you very much as most experienced posters will avoid something like that posted without being asked (and many can't even, because of network security restrictions).

It simply makes more sense to include all the details of the question (Generally only the one) within the text of the question itself. That way members can read the question simply without the need for the trouble of downloading a database just to find, in many cases, they're not willing or not able to help.

Most members are dealing with multiple questions in a short time so if you make finding what the question is fifty times more long-winded by including some of it in an attachment that needs to be downloaded and opened first, then most will simply ignore the question.

So, it's not an offense. It simply doesn't serve your purpose well.
Mar 9 '15 #5

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

Similar topics

4
by: Maxi | last post by:
I have posted my question on my website as the alignment in this post goes for a toss. The text editor wraps up the data in the next line by default and because of which I am not able to copy my...
22
by: Stan | last post by:
I am working with Access 2003 on a computer running XP. I am new at using Access. I have a Db with a date field stored as mm/dd/yyyy. I need a Query that will prompt for the month, ie. 6 for...
3
by: weird0 | last post by:
The given should return A,B that is two rows because both accountnames A and B have the same user_Id=1 but it is only returning A when I performed the op. MessageBox.Show("AccountNames:" +...
17
by: erikcw | last post by:
Hi all, I'm trying to run the following query: amember_db = MySQLdb.connect(host="localhost", user="**********", passwd="*****", db="*******") # create a cursor self.amember_cursor =...
7
by: MrHelpMe | last post by:
Sorry everyone, NOTE: I have posted this question to another site but unfortunately, am not getting the answers I need only because those helping haven't worked with ASP. I am in desperate...
4
by: Stan | last post by:
I am using MS Office Access 2003 (11.5614). My basic question is can I run a query of a query datasheet. I want to use more that one criteria and can not get that query to work. I thought I...
1
by: Tobias | last post by:
Hello, I have a data entry form. When data is entered in one of the fields I would like that data to be used to lookup info in a query and have that displayed in the form. The main form is a...
1
by: ziycon | last post by:
Ok, i got the main query working, my issue is that the GROUP BY isn't working, its should only show one of each location: SELECT _teamdb_country.name FROM _teamdb, _teamdb_country WHERE...
15
by: Andreasmis | last post by:
Hello, I have create some crosstab querys and basically now i have an issue , i am not sure if its a "logical" issue. First of all here is the SQL : TRANSFORM Nz(Sum(Duration),0) AS...
2
by: Arvinder Sahni | last post by:
UPDATE jt SET jt.Assigneduser = (SELECT u.userid FROM Users u where u.username ='Debbie Ross') FROM Jobstasks jt Users u on jt.assigneduser = u.userid Funds f on jt.fundid...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
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...

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.