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

I need answer from PEB to Kazza to be clearer if possible (Filter combo)

I think Kazza has the same problem.
I am very new at this
I also need to get the values from the combo selection
and put them in a table
I've tried to put the line in the criteria but I don't understand it much

=Forms![YourForm]![YourcOMBObOX]

What is Forms (Which form do I have to write in here?)
What is YourForm (Is this the form where the combo is in?)
What is YourCombo (Is it the name of the combo control?)

I suppose these are questions I should know, but I will
be very obliged if I could get a further explanation which
I'm certain will also please Kazza

If it is possible I would like a little comment of how this
line in the criteria will work
I can't imagine it
Thanks!
Nov 20 '06 #1
2 1148
MMcCarthy
14,534 Expert Mod 8TB
I think Kazza has the same problem.
I am very new at this
I also need to get the values from the combo selection
and put them in a table
I've tried to put the line in the criteria but I don't understand it much
I haven't seen the other thread but I assume it refers to setting criteria on a query based on the value in a form. That doesn't sound like what you're asking.

Can you be more specific about what you are trying to do and post a copy of the address of the other question if you feel it's relevant as there are so many we would never find it.
Nov 20 '06 #2
Hi This is what I have written so far
If it is not clear I can start all over again
Thanks!


In a combo box I need to get more than one value from the query
________________________________________
Hello!
I will try to explain the problem clearly
I am creating a database for my business (restaurant)
I have a table and a form called ‘suppliers’ which work perfecty well
The second table and form is called ‘products’
The fields are: ProductCode
Name
ProductType
TaxesType
A third table called ‘TaxPercentage’ consists of two fields:
TaxIndex
Percentage
A fourth table and form is called ‘Invoice’
The form ‘Invoice’ has a subform called ‘ProductInput’
And it is in this subform that I have the problem
It consists of the following fields:
Code
InvoiceCode
ProductCode
etc, etc
I use a combo box to get the name of the product
I set ‘Row source’ to a query that by means of ‘Name’ I get
The ‘ProductCode’
I set ‘Control source’ to ‘ProductCode’
But I should also get ‘ProductType’ and ‘TaxesTypes’ to get the percentage
from the ‘TaxPercentage’ table and put them in ‘ProductInput’ fields

I am sorry this seems to be badly expressed
Making a summary of it all I asked these questions:
In a combo box, by means of a query, how can I get the other fields of the table?
(I only get one)

If I have the value of a table field (say the code of a product)
How can I get other field values and with these get other values from
other tables?
Can this be achieve easily or should I do it with Visual basic?
Thanks for your time!

Joey


Hi Joey,
One way of doing this is to concatenate the values from your query into a single string value with a field name alias of your choice and set the control source to that field name, in this case ProdDetails:

Code:

SELECT ProductCode & ", " & ProductType & ", " & TaxesType As ProdDetails
FROM Product


Thanks for helping but I think I have not explained the problem very well

Now the other two fields are showing in the combo control but what I need
is to use the other fields of the record I choose to get access to other
tables.
Supose I have two products:
Wine and Milk
When I choose milk I need the taxesPercentage to go to the other table,
extract the value and place it in ProductInput table

It seems the more I write the more complicated it is
I am sorry
Nov 21 '06 #3

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

Similar topics

8
by: dick | last post by:
I am just trying to print/report the results of a "filter by selection" which is done by right-clicking a form, filling in values, and "applying the filter." I have searched the newsgroups, and...
7
by: Keith | last post by:
A2003, XP Pro SP2. I'm developing a simple custom filter form for a client and keep running into the same error. I've posted a simplified version in my web space at ...
6
by: bammo | last post by:
MS Access 2003, Windows XP SP2, VBA I have a continuous form that allows edits and filters, but not deletions or additions. I filter the form based on combining selections the user makes in...
1
by: Cara Murphy | last post by:
Hi There! Hoping you are able to help me with a filtering scenario: I have created a pop up form (Filter) to filter a report (Open Issues), which currently has a number of combo boxes which...
16
mshmyob
by: mshmyob | last post by:
I am trying to randomize my filter. I have a table with a record that has a possible value of "Easy", "Medium", or "Hard". The user makes a choice by a combo box. After it is chosen I activate...
1
by: Andez | last post by:
All, I wondered if it were possible to filter XML data based on selected options, values in combos in HTML. Suppose I have the following simple XML: <root> <city name="London"> ...
2
by: patriciashoe | last post by:
Greeting All I have several public variables which I use to build a filter string that I would like to use when I open a form and several associated sub forms. I have set the value of the combo...
1
by: kinglioness | last post by:
Hello All, I am new to this forum so I apologize if this quesiton was asked already. Although i did search but i couldn't find. I have 2 combo boxes one unbound and the other bound they are on...
2
by: franc sutherland | last post by:
Hello, I am using Access 2003. I have a query which shows a list of club meetings sorted by date. This query is displayed in continuous forms, in a subform. I would like to select a month on...
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?
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
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.