Approximate Values Query

May 2, 2007

hello,
I am just wondering whether there is any way I could define a query in such a way to include a record in Table A if field FA is approximately equal to field FB in Table B by no more than, say 12.

Thanks!

Regards,
Anyi

View Replies


ADVERTISEMENT

SUBFORM Show Approximate Matches

Mar 13, 2006

I have a form that shows a customer number and a dollar amount. In a subform, I want to show all the records with that customer number that are "close" to the dollar amount. For this purpose close can be INT(amt1) = INT(amt2). But I can't figure out how to put that in the parent/child relationship on the sub-form.

Any help?

Thanks,
David

View 2 Replies View Related

Method Of Handling Temporary Approximate Dates

Feb 12, 2012

I have my Data Types sent to "Date/Time" and a format YYYY/MM/DD.

What is a good method of handling approximate dates? IE: Early April 2012, or ~5/14/2012, or TBD.

Eventually, I want to create queries to calculate dates against each other.

View 3 Replies View Related

Queries :: Query Records With Both Duplicate Values And Different Values?

Jun 18, 2013

I'm trying to determine the SQL to return only those records in a table which have duplicate values in each of two fields, but different values in a third field. Here's an example:

Code:

AcctNum FoodType FoodClass
------- -------- ---------
A123 Apple Fruit
A123 Apple Fruit
A123 Grape Fruit
A456 Potato Vegetable
A456 Potato Perishable
A789 Carrot Vegetable
A001 Banana Fruit

For the above table, I'm trying to return records which have multiple entries for AcctNum + FoodType, but DIFFERENT values for FoodClass. So for the above table, the query would return:

Code:

AcctNum FoodType FoodClass
------- -------- ---------
A456 Potato Vegetable
A456 Potato Perishable

It returns these two records because there is more than one record with for the AcctNum + FoodType (i.e. 'A456' + 'Potato'), but DIFFERENT values for FoodClass (i.e. one record has 'Vegetable' while the other has 'Perishable').

View 5 Replies View Related

Queries :: Get Values From One Query And Assign Them To Another Query

Dec 18, 2014

I have created a query that counts the AppSizerPerUD for every User Drive (UserDriveID). Now I want to assign these values to the other query (UserDrive Usage) for every UserDriveID. So I want to create a new column in the UserDriveUsage query that will contain the AppSizePerUD. In this case in the first two rows must be 23.6, then one row 18.38, the third one 45,39 etc.I need something like a VLOOKUP in Excel. I have tried DLOOKUP but probably I am not uisng it correctly.

View 3 Replies View Related

Set Values In A Query

Mar 5, 2007

I have a DB where after I close out a month of sales I no longer want to be able to view records in my SalesEntryForm. I have a little check box that is the ClosedOut Check box. When I close out Febuary, I want to change all of the ClosedOut Check boxs to yes if the invoice was made in February. I have the query to get all of the records I want to close. How can I automate changing the values of these check boxes

Your help is appreciated,
JOe K.

View 1 Replies View Related

0 Values Ina Crosstab Query

Aug 3, 2005

Hi, I have a crosstab query, but for any product that has no entries on a certain date a NULL value is put in its place. Is there a way to have a 0 display there? Example of NULL:


DatePRODAPRODBPRODCPRODDPRODE
08/01/200513633
08/02/2005112643
Aug Total:216276



See how there is a NULL for 8/1 under PRODB? I would like that to be a 0

View 4 Replies View Related

Minimum Values In A Query

Aug 18, 2005

Hi

I have a table (tbl1) with three fields/columns (Primary key, NameID, Number). E.g.:

NameID ... Number
Mike ........ 2
Mike ........ 3
Mike ........ 19
Ronald ...... 1
Ronald ...... 2
Greg ........ 7
...

I would like to make a query that lists each NameID only ONCE, with corresponding MINIMUN Number. So the result from the upper example would be:

NameID ... Number
Mike ......... 2
Ronald ....... 1
Greg ........ 7


How do I do it???


Thank you in advance

m.

View 8 Replies View Related

Adding Values In A Query

Sep 28, 2005

can someone help with this. I have 2 fields in a query

tbl1_nbil = 3
tbl2_nbil = 0

however when I add them using

Bill = [tbl1_nbil] + [tbl2_nbil], I only get a few of the added numbers in the calculated field. In some records it works, but in the majority it does not

It onl seems to add when both fields are greater than zero

tbl1_nbil : tbl2_nbil : Bill
1 : 1 : 2
1 : 0 : 0
2 : 1 : 3
0 : 2 : 0
4 : 0 : 0

View 1 Replies View Related

3 Table Values In One Query

Sep 30, 2005

Hi
I have looked at the forum to see if I can find my answer, but it doesn't seem to be there.

I have 3 tbl SchoolDetails, School Activities and Keystages

The values from each table SchoolDetails ID & School Name
SchoolActivities: Activity Title, Date, Start Time, No of Workshops
Keystages: Keystage and NoOfPupils

I am trying to send one confirmation to each school. My problem is that when we book out the time it is booked out either by HalfAM or HalfPM, therefore if a school books a full day they get 2 records in the SchoolActivities tbl.

They also get numerous records in the Keystage tbl depending on how many classes are involved.

I am trying to bring together the sum of NoOfPupils - even though this can have two records (AM & PM) and also the numbers can be in numerous records in Keystage.

I just need to know how best to do this.

Any help would be appreciated.

View 3 Replies View Related

Query On A Field That Has Several Values

Oct 20, 2005

I am using a form where I select values from combo boxes to enter parameters for a select query. It works fine where the table queried only has one value in the field concerned. However, it does not work on the fields that have several values (entered through a multi-selection box).
Are there any ways to query fields with a multi-selection?
Thanks, Niels

View 6 Replies View Related

Null Values In Query

Dec 4, 2005

I need to create a query with the MTD field
I have created the MTD and it works!!! but now I need it to show all of the PartNum fields even if null. do I need to convert all nulls to zeros? if so how do I go about this?

Here are the fields in the query

First Field:
Field: PartNum
Table: Part
Total: Group By

Second Field:
Field: UnitPrice
Table: OrderDetail
Total: Group By

Third Field:
Field: NumOrdered
Table: OrderDetail
Total: Sum

Fourth Field:
Field: MTD: Sum([NumOrdered]*[UnitPrice])
Table: (blank)
Total: Expression

Fifth Field:
Field: CurrentYear: Year([OrderDate])
Table: (blank)
Total: Group By
Criteria: Year(Date())

Sixth Field:
Field: CurrentMonth: Month([OrderDate])
Table: (blank)
Total: Group By
Criteria: Month(Date())

When I run the query I only get 2 parts and their total. but I want all parts to show up even if they have not been ordered in the month. the parts that have not been ordered should say $0.00 in the MTD field.

Any Suggestions???

View 2 Replies View Related

Returning All Values In A Query

Jan 21, 2006

Hi.
Can someone help me?
I am trying to make a query return all values (please see attached jpg)
It returns some of the values, but is not returning values that have nothing in the "material" field (Null Values?)
In this example, I would like it to return all values that fulfill the Completion_Date, CW_Department, Handed_Over and Chargable fields, whether they have any data in the Material field or not.

Do I need to use the NZ, IIF or IsNull function? I have seen this is previous threads, but nothing like this example.....I apologise if there is.

Many Thanks.

Frank.

View 2 Replies View Related

Query And Merging Values

Nov 4, 2006

SELECT IIf((Count([PO]))>1,1,Count([PO])) AS PO_Num, IIf((Count([PO]))>1,'Multiple',[Category2]) AS Cat
FROM [Final]
GROUP BY [Final].Category2, [Final].[PO];

k so stage 1 seems to work, all the PO's that are multiples for the one category have been grouped and their value set to 1... but there are PO's with the same number pointing to another category.

I need to "simply" merge those PO's to be just one line_item.

1001 cat1
1001 cat1
1001 cat1
1001 cat2
1001 cat2
1001 cat2
1002 cat3
1002 cat3


should just combine down to
1 multiple
1 cat3


It would make more sense on a bigger scale but hopefully i'm clear here. But the ones that are not multiple do need to show the category name.

Can anyone spot the issue here?

View 1 Replies View Related

Delete Query - No Values

Aug 25, 2007

Hi,

I have a condition < 25 in a delete query.

When it is executed, it is not deleting when there is no value in the field.

How can I delete when there is no value?

Thanks in advance.

Cheers

Bud

View 3 Replies View Related

Subtracting Query Values

Sep 7, 2007

How do i subtract one value, worked out using a query, from another value, worked out using a query, and display it in a text box?

View 7 Replies View Related

Values Comparison Query

Nov 20, 2007

I really have looked everywhere

I have 2 fields and I want a query to pull out the records with a lower or equal to quantity value than the stock.

ReorderValue
3
5

Quantity
2
6

As you can see it shuold pick out the top record because its lower, I just need a way of telling it to look at each records Reorder Value

View 8 Replies View Related

Comparing Values In A Query

Dec 7, 2007

Okay I have a query that pulls from a table. It's pretty simple - nothing big.The query will be used to correct information in some sales tax data.I have 3 colums with sales tax info, and they should all be the same. I want to compare each column to show only those which don't match each other.NetTax, TotalTax, and TaxB are the fields.In the query, for the criteria of NetTax, I put in:<> [TotalTax]When I run the query, I get results, but they are all equal.EG:4.35 4.35 4.35I don't want them to show, and not sure if that's the right way to go about it or what.If I run without that criteria, I get 21,600 results.With that in the criteria, I get 304 results. So it is working somewhat...but for whatever reason some don't seem to be seen as being equal? I don't get it. Data type is number and they are formatted the same way.

View 14 Replies View Related

Comparing Values In A Query

Dec 17, 2007

Hi...
I will try to keep this succinct.

I have a query that totals a column in a sub-form. The query also gets a sum from the main form for the same record. Is it possible to have a message/colour change/warning if the total of the column in the sub-form exceeds the other number in the query? I would need this comparison to take place within this query, rather than creating a new one.

Thanks!
Kathryn

View 8 Replies View Related

Can't Modify Values In A Query

Feb 4, 2008

Hi!

It has happen to me many times that when I create specific queries I'm then not able to modify the values of em...

Do you know the possible causes of this?

Is it because I'm filtering? Ordering by? Grouping? Using fields of differents tables related 1-many? Calculated fields? Expressions? Modules?

----------

One specific case that has presented to me is a query that returns info from 1(main)-many(details) relationship. When I use the sorting of a field of the main table it doesn't allow me to edit values, tho when I delete this sorting it works fine.

Nevertheless, I also have another query which just returns values from one table and whether I use sorting or not, I can modify the values.

What's happening??? :( :confused:

View 1 Replies View Related

Using Values From Form In Query

Aug 3, 2006

I have a table of records, each of which has a date.

I want to create a form which has two boxes on it for the user to input 2 dates and then get Access to query the table of records and display only those which fall between the two dates specified.

I could do set this up using a parameter query but am not sure how to make the query pick the dates up from the form.

How can I do this?

Gary

View 14 Replies View Related

How To Subtract Values In A Query

Sep 10, 2004

I have a table that has two fields; odometer reading and reading date. I want to able input the reading dates along with the odometer readings. Then I want my query to calculate the milage difference between each date.

Example:
DATE READING DIFFERENCE
9/1/04 35000
10/1/04 40000 5000
11/1/04 42000 2000

And so on.............

Thanks in Advance - John

View 1 Replies View Related

Query To List Max Values

Oct 1, 2006

I have a Select query that lists, among other things, two fields:
ID_Clients
EndDate

Each entry in ID_Clients may be listed several times


I want to generate a Select query based on the above query that lists each value of ID_Clients just once, by selecting the record for that ID_Clients that has the maximum value in the field EndDate.

So, sample source data

ID_Clients......EndDate
AAA.............2005-04-30
BBB............. 2005-06-30
AAA.............2006-04-30
BBB............. 2004-06-30
CCC.............2006-09-30

Desired end result:
ID_Clients......EndDate
AAA.............2005-06-30
BBB.............2006-04-30
CCC.............2006-09-30

Any ideas how I should achieve this would be appreciated.
Thanks

View 2 Replies View Related

Query To List Max Values

Jun 12, 2007

Quote: Originally Posted by ansentry Have a look at the attached sample.

Hi John,

I am new to this site. I can't seem to find where the attachment being referred to is. I have a similar question. Basically, I have this data:


Parcel No. ......Soil Type......Area
001-001 flathead 75
001-001 whitefish 33
001-001 kiwanis 45
001-002 kiwanis 22
001-002 flathead 33
001-002 chamokane 74
002-005 flathead 20
002-005 kiwanis 53
002-005 chamokane 27

The desired result is:

Parcel No. Soil Type Area
001-001 flathead 75
001-002 chamokane 74
002-005 kiwanis 53

Can you please help me? Thanks.

View 8 Replies View Related

Qbf Using Same Query But Different Forms And Values

Oct 1, 2014

I have a totals report based on a query the qbf is for the date input field. I want to be able to run this report from two separate forms the first form is for users where they select the month and year from a combo box the criteria looks like below this is done to ensure users only run monthly or yearly reports to limit the chance of picking the wrong dates

Like [Forms]![Switchboard_Form]![Month] & "*" & [Forms]![Switchboard_Form]![Year]

I have another form that is sort of the Management Form in which the qbf Totals report can be run more in depth such as a certain range maybe for a certain week by using start date and end date the criteria looks like below

>=Nz([Forms]![Managment_Form]![From],#01/01/100#) And <=Nz([Forms]![Managment_Form]![To],#12/31/9999#)

This lets totals be pulled using both, none, or one or the other of the start date and end date..Is there a way I can set up the query to tell which form is open and to use the correct criteria for that particular form. I tried using "or" however the query still prompts for the other set of values no matter which form u use but works fine when you remove the not needed criteria. I can provide a better example if needed let me know if this is unclear.

View 5 Replies View Related

Keep Duplicate Values In Query

Aug 27, 2015

I've got a query where a particular field can have duplicate entries. I do NOT want to limit the properties to only have unique values. On the contrary, I very much WANT to keep those but I DO want to have something indicating that the duplicates are there. I can create another Y/N or true/false field to indicate this if needed.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved