opopanax666
Registered User.
- Local time
- Today, 00:57
- Joined
- Nov 2, 2006
- Messages
- 44
SOLVED: Dynamically created buttons
Hi everyone,
I am staring myself blind on a problem, I think, so maybe if I explain what I need, someone could give a fresh view on things.
- This form will be used for stockroom-employees to quickly input what product they just weighed by clicking a few buttons (and maybe later use with a touch-screen);
- We employ different nationalities, so I want the buttons to show logos, together with a caption below the button;
- We use 3 tiers in product identification: 6 main categories (fixed), divided in 20 subcategories (with a max. of 6 per main group)(fixed), which in turn contain a customizable number of groups (max. of 18 per subcategory);
So I have a table "Main" with just 6 IDs and groupnames, a table "Sub1" with 20 IDs, subnames, logopaths and main_ids (linked to Main), and a table "Sub2" with an autonumber-id, name, logopath, display (yes/no) and sub1_id (linked to Sub1).
On the form I would like to have three option-groups: one displaying the 6 "Main"-buttons, one to display the "Sub1"-buttons depending on which "Main"-button is pressed, and one to display the custom "Sub2"-buttons depending on which "Sub1"-button is pressed.
I would need to "create" the buttons in group 2 and 3, and that was where I got stuck. I tried to use the "visible"-property, but since I only knew how to do this by using the button name, I needed to create a query including a function to create a column with sequential numbering to be able to control the buttons. And I never got this to work...
Just to be complete: the chosen product_id will be saved to another table together with the weight (which was input before getting at this form), and the autonumber of this table would be used as a unique identifier for the product (barcode).
So maybe someone here knows of a different approach to get to the same result.
Any feedback would be greatly appreciated!
Hi everyone,
I am staring myself blind on a problem, I think, so maybe if I explain what I need, someone could give a fresh view on things.
- This form will be used for stockroom-employees to quickly input what product they just weighed by clicking a few buttons (and maybe later use with a touch-screen);
- We employ different nationalities, so I want the buttons to show logos, together with a caption below the button;
- We use 3 tiers in product identification: 6 main categories (fixed), divided in 20 subcategories (with a max. of 6 per main group)(fixed), which in turn contain a customizable number of groups (max. of 18 per subcategory);
So I have a table "Main" with just 6 IDs and groupnames, a table "Sub1" with 20 IDs, subnames, logopaths and main_ids (linked to Main), and a table "Sub2" with an autonumber-id, name, logopath, display (yes/no) and sub1_id (linked to Sub1).
On the form I would like to have three option-groups: one displaying the 6 "Main"-buttons, one to display the "Sub1"-buttons depending on which "Main"-button is pressed, and one to display the custom "Sub2"-buttons depending on which "Sub1"-button is pressed.
I would need to "create" the buttons in group 2 and 3, and that was where I got stuck. I tried to use the "visible"-property, but since I only knew how to do this by using the button name, I needed to create a query including a function to create a column with sequential numbering to be able to control the buttons. And I never got this to work...
Just to be complete: the chosen product_id will be saved to another table together with the weight (which was input before getting at this form), and the autonumber of this table would be used as a unique identifier for the product (barcode).
So maybe someone here knows of a different approach to get to the same result.
Any feedback would be greatly appreciated!
Last edited: