473,732 Members | 2,207 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Queary Not Responding to Criteria

klarae99
85 New Member
I am new to this forum and new to Access 2003...this is my first database that is more than a table and some reports. The database I am working on is for inventory control. My current project is to produce a report by retail location that tells the available stock. I have choosen to create a form that will imput data to a queary that a report is based on. My form has a 5 button option group with an invisable textbox linked to the EventLocation field of by transactions table. The first 4 buttons are coded to a specific location and the fifth button (All) gives a null response to the queary. The queary views a null response as view all. This is all set up and working fine, the problem is that in addition to our four retail locations the EventLocation field also lists one day festivals and events that our giftshop participates in. When designing the Queary I created a sum of the # [recieved] and the # [sold] and used them in a calculation field to get the # [On Hand]. The one day events and festivals Never have any On Hand. Knowing this I placed the criteria >0 on the Quearys [On Hand] Calculation field. This criteria does not have any affect on the results when I run my queary, I get the exact same list when I deleate the criteria from the field. I could really use some help on this one...I have no idea why Access does not "see" the criteria. Thanks!
Sep 24 '07 #1
1 1688
klarae99
85 New Member
I have continued to work on this issue on my own while awaiting a response. I was able to work around the problem by saving my original queary without a criteria on the calculated field and then create a new queary using the previous queary as the control source and then add the criteria of # [On Hand] being >0. This generates the results that I need and will allow the database to function but it requires that I have two quearies to complete one function and I know there has to be a better way to do this. Does anyone have any suggestions? Should I be approching the problem in a completely different way, through code or something? Any advice would be appreciated. Thanks!
Sep 28 '07 #2

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

Similar topics

3
2415
by: TM360 | last post by:
I realize this may not be the right group to post this, but I'm not having much success elsewhere so I thought I'd give it a try... In our application we have a link that opens a new window displaying the contents of a page that can be customized by our end users. When we call window.open() we save the resulting window reference so that if users navigate away from our application we can close the window. One of our customers has...
6
5269
by: AAVF | last post by:
Hi We have a problem with a query. An Access database links via ODBC to a UNIX server. To speed things, we use the ODBC to load the relevant tables to the local PC that runs Access so that all querying is done locally. One of the reports we run allows the user to list all invoices within a period. They are also allowed to select a customer code and a product set on
3
6367
by: Jack | last post by:
What is the syntax for the criteria in DLookup in a subform to refer to a control (MyControl) on the subform? I have tried the following and none seem to work: " = " & Forms!NameOfMainForm!NameOfSubformControl!MyControl " = " & Forms!NameOfSubform!MyControl " = " & NameOfSubform!MyControl The subform control and the subform have the same name so the last criteria could refer to either.
3
3302
by: MLH | last post by:
Am repeating question with different subject heading, perhaps stating more clearly my problem... I have an A97 query (qryVehiclesNowners2) that has a table field in it named . Depending on the selections made in a number of criteria choices on a form, a field on the form will have string values in it like... Between #12/1/2004# And #12/31/2004# - or - >= #6/10/2005# - or -
8
2961
by: Steve Jorgensen | last post by:
Mailing List management is a good example of a case where my conundrum arises. Say there is a m-m relationship between parties and groups - anyone can be a member of any combintation of groups. Now, let's say the user wants to be able to send mailings to people who have various combinations of membership and non-membership in those groups. Here's a medium-complex example: (Knitting Group or Macrame Group) and Active Contact and Mailing...
4
35490
by: bleighfield | last post by:
Hi everyone Hope someone can help with this one.. Background: I work in vehicle fleet, I have built something to 'predict' when a car/van service is due (it's fairly simple, calculates miles per day between 2 known dates/mileages and then uses the service schedule to work out what date the next service would be due, selecting the 'closer'
2
2524
by: CJM | last post by:
I have a page that allows the user to search a DB by querying one of 3 fields. When results are returned, I want the user to be able to click a value in one of three columns (that directly relate to the 3 searchable fields) and have the page postback and requery given the selected criterion. For example, the user searches for retainer #1, which has a Tip Width of 5. So he clicks on the 5 and it searches again for all retainers that have a...
2
1916
by: RZ15 | last post by:
Hi, I have a query that is pulling info from 7 tables (all necessary). The only criteria I have specified is for the invoice date field which is as follows: Field: INVCDAT Table: dbo_INIH Criteria: >=DateSerial(Year(Date()), 1, 1) This works fine. When I run the query like this it takes less than 20 seconds. However, when I add criteria to my transaction code field so that it's equal to the code "TRN", access has a panic attack and...
23
2916
klarae99
by: klarae99 | last post by:
In Access 2003 I am creating an Inventory Database from scratch. There are two tables (tblProductInformation and tblSubProducts) that I am trying to use in a queary to determine the number of Items in Stock. The SubProducts table is linked to the Product Information table by Item # (and the information is added and viewed as a form Product Information with a Sub Form Sub Products) I have a form (frmInventoryLocation) where a location is...
0
8946
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8774
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9447
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9307
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9181
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8186
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6031
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4550
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2721
muto222
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.