473,396 Members | 2,113 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,396 software developers and data experts.

Query, drop box HEELLP!

PLEASE HELP!!
I am trying to create a database for my small business. I have typed a bunch
of information in a table in 5 columns (style, mm, karat, quantity, labor
cost). We have different labor costs obviously depending on what combination
those first 4 factors are for example respectively in the columns mentioned
above
(abc, 5mm, 14karat, 10pieces), would be $5 for the labor cost. What I want to
be able to do is produce a query (pref drop down or similar), that would take
what I chose from the style, mm, karat, and quantity, and display the resulting
labor cost. In the one above the labor cost would be $5, however if I changed
say just the karat to 18karat, the labor would display $6. Any help would be
GREATLY appreciated if you can email me it might be easier. If you think youd
need to see what I have typed so far please email me and I can send what I have
so far..
Nov 13 '05 #1
6 2006
ra*****@aol.com (Rated R1) wrote in
news:20***************************@mb-m06.aol.com:
PLEASE HELP!!
I am trying to create a database for my small business. I have typed a
bunch of information in a table in 5 columns (style, mm, karat,
quantity, labor cost). We have different labor costs obviously
depending on what combination those first 4 factors are for example
respectively in the columns mentioned above
(abc, 5mm, 14karat, 10pieces), would be $5 for the labor cost. What I
want to be able to do is produce a query (pref drop down or similar),
that would take what I chose from the style, mm, karat, and quantity,
and display the resulting labor cost. In the one above the labor cost
would be $5, however if I changed say just the karat to 18karat, the
labor would display $6. Any help would be GREATLY appreciated if you
can email me it might be easier. If you think youd need to see what I
have typed so far please email me and I can send what I have so far..


If I were doing this I would

Create a laborcost Table
with 4 fields
style, mm, karat, laborcost (and probably a laborcostId field from habit)

In that table I would create one record for each possible combination of
factors.

My first record might be
abc,5,14,10.

In my query I would JOIN my main table to the laborcost table ON
maintable.style = laborcost.style AND
maintable.mm = laborcost.mm AND
maintable.karat = laborcost.karat

and SELECT maintable.* (or whatever),
laborcost.laborcost

I would remove laborcost from my main table as it is now redundant.

This is assuming I started from the situation as you describe it.

Lyle
--
use iso date format: yyyy-mm-dd
http://www.w3.org/QA/Tips/iso-date
--
The e-mail address isn't, but you could use it to find one.
Nov 13 '05 #2
sorry, but I am database-illiterate. If I send you the table that I have
written, can you just write maybe 1 or 2 lines (obviously not it all), just to
show me what you mean?
Nov 13 '05 #3
Access already contains a tool which may do all you need.
Open your table.
From the menu, select Records - Filter - Filter by Form.
The table will change to a single record, with drop boxes for each field.
Fill in the fields, and click Filter - Apply Filter.
Your table will now show only the records which match your entries.

You can use Records - Remove Filter/Sort to return to your full table.

HTH
- Turtle

"Rated R1" <ra*****@aol.com> wrote in message
news:20***************************@mb-m06.aol.com...
PLEASE HELP!!
I am trying to create a database for my small business. I have typed a bunch of information in a table in 5 columns (style, mm, karat, quantity, labor
cost). We have different labor costs obviously depending on what combination those first 4 factors are for example respectively in the columns mentioned above
(abc, 5mm, 14karat, 10pieces), would be $5 for the labor cost. What I want to be able to do is produce a query (pref drop down or similar), that would take what I chose from the style, mm, karat, and quantity, and display the resulting labor cost. In the one above the labor cost would be $5, however if I changed say just the karat to 18karat, the labor would display $6. Any help would be GREATLY appreciated if you can email me it might be easier. If you think youd need to see what I have typed so far please email me and I can send what I have so far..

Nov 13 '05 #4
Yes this is similar to what I want to do...however with a few differences.
First off in the first column I will choose "style a", i want the next column
to only give me the results that fall within that category. Then from those
choices I select for example "4mm", then I want the third colum to give only
the choices that fall within the "style a" + "4mm" category. Then in that
column I choose "14karat", then in the 4th I want only those that fall within
"style a" + "4mm" + "14karat", and so on until the 5th column when there will
be the result
Audio and Video Trading Lists: members.aol.com/ratedr1/homepage.html
"Marge, You Know That Trying is the First Step Towards Failure!!"
"Ohhh...they have the Internet on Computers Now??
"Damn You Rockem Sockem Robots..Cant We All Just Get Along?" -Homer
Nov 13 '05 #5
read this, it solves your problem:
http://www.mvps.org/access/forms/frm0028.htm
Nov 13 '05 #6

I will pay someone a reasonable price for leading me to the ulimate answer and
helping me learn access for this result

thank you so much for leading me to that page...it will be of great help in the
future, however. The problem is on my computer it came up in Chinese. Wel
actually it looked like English, but when I read the words out loud it sounded
like Chinese to me :-) For example..in this line :
To filter records in a combo/listbox based on the value selected in another
combo/listbox, you can use a stored query which uses the first control's value
as a parameter
One of the problems is, since I am not database literate, I would need to learn
how to do this from the beginning. All that I have typed out is the table with
the 5 columns (and even then I found out I need a primary key for some reason
which I didnt have). I haent written a query for any of the columns yet, so I
cant even get to the point of the page that you have shown me. Is there any
further help that you could provide me? (or if I send you the database can you
write one quick query for me to show me?). I really want to get this done, and
once I learn how to do something, I never forget it (I can build comps, design
whole networks, mastered all the other MS programs, most of that other simple
stuff to professionals, but stuff that 99% of the others cant do), so I know
when I learn databases, I can take it to the next level myself.
Thanks in advance for any help possible.
Scott

Nov 13 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Shmuel | last post by:
Is it possible to query multiple statements at once? Like: $query = "set @p := 1; select @p + 1"; $results = mysql_query($query); I'm thinking of PHP4. There is in mysqli the prepare...
5
by: Muhd | last post by:
To start off i have a database table that consists of "profiles", another that consists of "users" and finally one that consists of "exclusions", these are defined in the DDL below. I am trying to...
5
by: Hennie de Nooijer | last post by:
Hi, This is a diffcult issue to explain. I hope to make my problem clear to you. SITUATION I'm building A SLA Query for a customer. This customer has an awkward way to determine the SLA results...
3
by: Jonathan | last post by:
Hi all! For a match schedule I would like to find all possible combinations of teams playing home and away (without teams playing to themselves of course). I now the simple version works...
9
by: Ed_No_Spam_Please_Weber | last post by:
Hello All & Thanks in advance for your help! Background: 1) tblT_Documents is the primary parent transaction table that has 10 fields and about 250,000 rows 2) There are 9 child tables with...
5
by: deko | last post by:
How to run action query against linked table? I have an Access 2003 mdb with an Excel 2003 Workbook as a linked table. When I attempt to run an action query against the linked table I get this...
3
by: cassandra.flowers | last post by:
Hi, I was wondering if it is possible (Using access) to have a query parameter as a drop down box rather than a text box? e.g. typing as criteria for a query produces a box with a text box...
2
by: ponyeyes | last post by:
Hi There, I am a bit of a newbie to PHP programming and I would like to know how I can place a selected drop down option into a PHP variable and then produce an sql query which incorporates this...
0
by: RCapps | last post by:
When running the below SQL Query I keep getting the following error: Server: Msg 4924, Level 16, State 1, Line 1 ALTER TABLE DROP COLUMN failed because column 'ContractDef' does not exist in table...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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,...

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.