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

subforms

27
Hi,
I am wondreing if you can help me.
I created a form which will generate a product code by choosing different options from 8 combo boxes and by doing that filtering all these options from subform below.
The Main form name is : Part Number,
It contains 8combo boxes with dropdown lists each. (by choosing one option from each list it creates a product code)i.e. BB H1 B 53 A B C A
I have created the subform which includes of all the options from the dropdown lists.
Is there a possibility to create a code that will filtewr all the lines from subform by choosing only one option from each dropdown list???

Any ideas ??

Many thanks.
megdzia
Nov 7 '08 #1
3 910
Hi

Im sorry i follow you up to the point were you describe the subform, "it includes all of the options"???

Do you mean the subform has eight combos as well with the same drop down options as the main form?

Regards

Gary
Nov 8 '08 #2
MEGDZIA
27
Hi Gary,
Thanks for asking.
Lets say that each combo has 6options and there are 8combos so the subform includes 48 lines with all options from each combo box above.(no combos in subform).
what I would like to achieve is by chosing one option from each combo box to eliminate the remaining 5 in the subform and leave just the one which was picked up from the combo box above.Hope that helps...
Can you think of any VBA code that is applicable???
Any help will be greatly appreciated.
many thanks,
megdzia
Nov 9 '08 #3
Stewart Ross
2,545 Expert Mod 2GB
Hi. The general principles of using multiple combo boxes which are cascade-filtered are given in our howto article on cascading combo boxes.

However, you may struggle to produce source queries which can be suitably filtered, given the apparently manual way you currently seem to build your part number string.

If I was doing this I would think long and hard about how the part number is intended to match the product. To get a better view of how this is done I would write down a decision table - just on paper - to clarify what the patterns involved are. If the rules for producing the part number can be codified then they can be automated using Access. If the rules are difficult to write down manually then it will be difficult if not impossible to get Access to do the job for you, as cascaded combos have to have a defined source that is filtered from one cascaded combo to the next - no good if you can't define how the filtering is to work.

After defining the rules for the part number I would tend towards using a custom function written in VBA which takes the necessary data from whatever defines the product and generates a part number for the product automatically - perhaps in conjunction with a table of unique numbers if needed. In any event, if I was you I would define the rules and be absolutely clear about what it is you want to be implemented before going any further.

-Stewart
Nov 9 '08 #4

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

Similar topics

1
by: JJMM | last post by:
Hi, I have a form (form1) with a large number of subforms inside it (around 20 subforms), There is the possibility of filtering the data using a pop-up form that create/change a query (all the...
3
by: Evil | last post by:
Hi, i have a problem with a treeview and some subforms in MS Access97. I have a form with a treeview on the left side which lets me navigate thru some projects. Then on the right side, i have...
0
by: Arnold | last post by:
Hi there, I have a form to organize bottles in mind, but am unsure if it will work. Here's some background info: Mainform = frmProduct, which contains fields for pricing, status, etc. of...
1
by: M Wells | last post by:
Hi All, I am developing an Access 2003 project application with the back end in SQL Server 2003. I have a master form that tracks projects, and several subforms on it that track various...
2
by: Jack | last post by:
Hi all, I searched the archives and found everyone happy with Stephen's MouseWheel On/Off code except for those with subforms. Stephen's page indicates that he has added code to handle subforms...
0
by: Jack | last post by:
Gday everyone, I'm dearly hoping Stephen Lebans is going to update his masterpeice to stop the mouse wheel scrolling to work on subforms *he has indicated this to me but of course beggers can't...
5
by: Richard Stanton | last post by:
Hello all My database has a main form linked to table1. It has several subforms on the main form, all linked to table2. Table1 and Table2 are linked by primary/foreign key, no duplicates...
8
by: Zlatko Matić | last post by:
Hello. How can I synchronize subforms content with current record in master form, if both form and subform are based on DAO code ? I assigned DAO recordset to forms by using QueryDef, on Load...
2
by: robert.waters | last post by:
Hello, If I have a form containing a Tab Control with N pages, each page containing a subform, are those subforms loaded into memory when another page has the focus? I have tried iterating...
4
by: Harlequin | last post by:
I have a question concerning the need to trigger events within a "child" subform which is itself enbedded within a master "parent" form and which is accessible via a tab in the parent form. Becuase...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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.