473,505 Members | 13,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MS Access Query Criteria Form Does Not Display

5 New Member
Hello

I've tried using the MS Access Northwind sample DB and I've downloaded a few other sample Microsoft Access DBs from their website. I keep on running into the same problem for trying to retrieve user input from a query form.

In the Northwind DB, there is a query named "Invoices Filter". In the criteria for the OrderID field in the Invoices table, the following is entered: [Forms]![Orders]![OrderID]

I understand that for this field, it's trying to retrieve user input from the form "Orders" based on the "OrderID" field. But when I double click the "Invoices Filter Query", the form does not display. What happens is that the default dialog box appears with "Enter Parameter Value" as the form caption, a label "Forms!Orders!OrderID", a textbox and an OK command and Cancel command (in the attachment). Why isn't the "Orders" form opening when I double click the Invoices Filter query? Is there something wrong with my settings?
Attached Images
 
May 12 '10 #1
5 3665
TheSmileyCoder
2,322 Recognized Expert Moderator Top Contributor
Welcome to Bytes
That query is meant to be used while the form is allready open. If I recall correctly the query is used to fill a subform of the Orders form. Since the form is not open, the query can not access the data, and that is why it is asking your for a input.

Tell us a bit more about what you are trying to accomplish and we might be able to help you better.
May 12 '10 #2
erog
5 New Member
Hi SmileyOne

Thanks for the quick reply. I'm following this tutorial:
http://www.fontstuff.com/access/acctut08.htm

This tutorial is very similar to what I want to do. Instead of having a dropdown box, I would like to have Yes/No checkboxes. I already have yes/no fields in one of my tables called "Project Leads". Anyways, in step 2.3 in the tutorial, it says I can "Test the query" by pressing the Run button on the toolbar. I thought that if I double clicked the "Invoices Filter Query" this would open the form according to this tutorial.

Would I have to insert the OK and Cancel commands on my custom "Filter dialog box" in order to filter my results based on whichever yes/no fields are equal to -1? Then in the query criteria I would have something along the lines of [Forms]![frmFilterLeads]![chkJoeReed] for each record?

Please note: I am using MS Access 2002 so this may be a newer version.
May 12 '10 #3
erog
5 New Member
Ok got it working... That wasn't that hard. I spent my whole morning looking at settings and why this wasn't working in the Northwind and other tutorials. The tutorial above it must be using a more recent version of access.

The bad thing about checkboxes is that there can be three values:
0/-1/Null
I may try to change it to a listbox.
Having 0 and -1 user responses will more likely give unwanted results. Thanks SmileyOne

Now how can I get a report to display instead of the query.........?
May 12 '10 #4
erog
5 New Member
just got the report working too :)
May 12 '10 #5
TheSmileyCoder
2,322 Recognized Expert Moderator Top Contributor
Sounds good.
May 13 '10 #6

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

Similar topics

2
4144
by: William Wisnieski | last post by:
Hello Everyone Access 2000 Looking for some suggestions and advice on how to proceed with this. I hope its not as complicated as it seems to me right now. I've got an unbound main form...
2
2524
by: Matthew | last post by:
Hey , I have built a query which takes values from unbounded fields on a form, and it all works except for one thing. I have a few fields in my query that are dates. I also have a start and...
1
1579
by: jen | last post by:
What is the correct syntax to reference a form field in a query. For example, I want to pull data where field x of my table equals field y on a form? Thanks in advance for the help!
2
1665
by: mgolding | last post by:
I have an Access query that gets an ID value from an open form. Something like SELECT * from tablename WHERE ID=openFormName.ID; But now, I want to also run the query by handing it the ID from...
3
1503
by: PCCTN | last post by:
I am trying to find out what criteria to put into a specific query that is connnected to a table field of part numbers. The problem is that it has some part numbers that are numbers and some part...
3
3316
by: marylipscomb | last post by:
I am going over code that I am now responsible for but did not write. Can someone tell me what this means? Thank you so much Also this is on a query, criteria. Like "*" & !! & "*" What does...
2
2322
by: Aussie Rules | last post by:
Hi, I have a access 2007 database with a cross tab query. Based on the selection critieria the cross tab may contain a different number columns in the result. For example if the query is...
7
2461
by: servantofone | last post by:
I'm using Access 2003. I'm building a query and wish to display all records with values in a certain field (HIST) made up of all zeros. The field has a range of text values including alpha-numeric...
8
2463
by: limperger | last post by:
Hello everyone! First and foremost, my apologies for the title of the post. It is not very clarifying of what the problem is about, but I didn't know how to put it... My problem is as follows: I...
7
12486
by: DeZZar | last post by:
Hi all, Unfortunately I am quite a novice with Access!! I've created a number of data bases for my work however becuase my skills are limited to really built in functionality and wizards my...
0
7298
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,...
1
7017
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
5610
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,...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4698
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1526
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 ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
406
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.