473,406 Members | 2,404 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.

Multi-table Value Query Help!!

natalie99
Hi All :)

I am trying to stipulate rules for the return of a pricing value in Access.

I know this should be very easy, I simply cannot seem to make my expressions work!

The two tables have the following (ignoring all irrelevant fields)

TABLE 1

Minimum Bandwidth, eg. 0 , 40.01 , 80.01
Maximum Bandwidth, eg. 40 , 80 , 138
End Price, eg. 150.26 , 327.18 , 459.87

TABLE 2

Bandwidth 26.4 , 48 , 64.1 , etc


I want to place an expression in the query stating that the end price for a record is defined by the bandwidth, ie.

Minimum Bandwith<=Bandwidth and Maximum Bandwidth>Bandwidth

then display the End Price

How do I type this in the design view so that the value of field Bandwidth in TABLE 2 is used, and the expression does not interperet it as the word bandwidth, which is not an integer!

In the criteria for field Minimum Bandwidth:

<="Bandwidth"

Thanks for any help with my most likely simple problem :)

Natalie
Feb 29 '08 #1
4 1427
Stewart Ross
2,545 Expert Mod 2GB
...How do I type this in the design view so that the value of field Bandwidth in TABLE 2 is used, and the expression does not interperet it as the word bandwidth, which is not an integer!

In the criteria for field Minimum Bandwidth:

<="Bandwidth"
...
Hi Natalie. Assuming that you have put Table 2 into your query's design view you refer to the field within brackets:
Expand|Select|Wrap|Line Numbers
  1.  <=[Bandwidth]
-Stewart
Feb 29 '08 #2
Assuming that you have put Table 2 into your query's design view you refer to the field within brackets:

Code: (text)
<=[Bandwidth]


Hi

Thanks for the reply!

I have tried this and it says

'Data Type Mismatch in Criteria Expression

However, both fields are set to Number in the Table 1 and Table 2 design views.

Also, the query design view automatically changes the criteria from:



<=(Bandwidth)

to

<=("Bandwidth")

Thanks!
Feb 29 '08 #3
right, sqaure brackets, duh, SORRY! and thanks for the help!
Feb 29 '08 #4
Stewart Ross
2,545 Expert Mod 2GB
right, sqaure brackets, duh, SORRY! and thanks for the help!
You're very welcome, Natalie. I'm sure you'll find it hard to forget which kind of bracket to use from now on too!!

-Stewart
Feb 29 '08 #5

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

Similar topics

6
by: Xenophobe | last post by:
I know this isn't a MySQL forum, but my question is related to a PHP project. I have two tables. table1 table2 "table1" contains 2 columns, ID and FirstName:
0
by: kernal | last post by:
Hi, I am building a project in ASP I need a SQL query for my project. I am making "Student Fee System" for a school all is fine, but i need a search statement in which it showes only those...
1
by: Hought, Todd | last post by:
Hi all, trying to run a query against a table, to pull the date out, and order it. problem is, the date is stored in character (string) format, not as an actual timestamp, so parsing it back into...
1
by: Wayne | last post by:
I've created a form that has many option boxes to help users choose items (I need option boxes vs. combo boxes because they can choose multiple items per category). I've created an update query...
2
by: chrisek | last post by:
Hello, I have 2 tables: - Customers with columns: customerID(prim_key), customerName(with customer's names) - Deliveries with columns: deliveryID(primKey), sender(ref_key to CustomerID from...
1
by: write2ashokkumar | last post by:
hi... i have the table like this, Table Name : sample Total Records : 500000 (Consider like this) Sample Records: ----------------
1
by: write2ashokkumar | last post by:
hi... i have the table like this, Table Name : sample Total Records : 500000 (Consider like this) Sample Records: ----------------
5
by: Samik2003 | last post by:
Hello, The problem is my query is not extracting the correct xml data from the database : Is there something which I am missing?? ANy help would be appriciated. Thanks, Sam. THis is the...
2
by: de_ja | last post by:
Hi, If, for example an access database that concerns insurance claim investigations. The database comprises only one table containing data - investigation reference number, referral date,...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...
0
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...

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.