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
4 1427
...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:
-Stewart
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!
right, sqaure brackets, duh, SORRY! and thanks for the help!
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
Sign in to post your reply or Sign up for a free account.
Similar topics
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:
|
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...
|
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...
|
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...
|
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...
|
by: write2ashokkumar |
last post by:
hi...
i have the table like this,
Table Name : sample
Total Records : 500000 (Consider like this)
Sample Records:
----------------
|
by: write2ashokkumar |
last post by:
hi...
i have the table like this,
Table Name : sample
Total Records : 500000 (Consider like this)
Sample Records:
----------------
|
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...
|
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,...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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,...
|
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...
|
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...
| |