Hello everyone
*
I got this situation and it would be nice if someone can advice me how to proceed.
*
In the tblMachines I’ve got 4 fields
Section********** MachineNumber***** MachineName********* MachineCapacity
G5****************** 1254A* * * * * * * * * * * * * * Maki************************** 500
G5****************** 3544************************* Zebra************************ 1000*
G5****************** 1565A* * * * * * * * * * * * * * Zebra 2********************* 5040
Fitting*********** 1565A* * * * * * * * * * * * * * *fit 1*************************** 100
Fitting*********** 1545B* * * * * * * * * * * * * * *fit 2*************************** 500
*
In the FormSectionLayout I have a dropdown list to select the section.
On the same form I have three (max number of machine for a given section) labels.
*
What I want to do is when I select the section from the dropdown list, the value of the machineNumber, MachineName and MachineCapacity* to populate in to label.caption
*
Example1 section G5 is selected.
*
First Label caption:
1254A
Maki
500
*
Second Label caption:
3544
Zebra
10000
*
Third Label caption
1565A
Zebra 2
5040
*
Example 2 section “Fitting” is selected
*
First Label caption
1565A
fit 1
100
*
Second Label caption
1545B
fit 2
500
*
Third label caption
Empty
*
What is the best way to achive this with DLookUp or with SQL?
We have about 5 Sections and maximum 6 machines per section.
*
Your help is really appreciated.
*
Priyan
*
I got this situation and it would be nice if someone can advice me how to proceed.
*
In the tblMachines I’ve got 4 fields
Section********** MachineNumber***** MachineName********* MachineCapacity
G5****************** 1254A* * * * * * * * * * * * * * Maki************************** 500
G5****************** 3544************************* Zebra************************ 1000*
G5****************** 1565A* * * * * * * * * * * * * * Zebra 2********************* 5040
Fitting*********** 1565A* * * * * * * * * * * * * * *fit 1*************************** 100
Fitting*********** 1545B* * * * * * * * * * * * * * *fit 2*************************** 500
*
In the FormSectionLayout I have a dropdown list to select the section.
On the same form I have three (max number of machine for a given section) labels.
*
What I want to do is when I select the section from the dropdown list, the value of the machineNumber, MachineName and MachineCapacity* to populate in to label.caption
*
Example1 section G5 is selected.
*
First Label caption:
1254A
Maki
500
*
Second Label caption:
3544
Zebra
10000
*
Third Label caption
1565A
Zebra 2
5040
*
Example 2 section “Fitting” is selected
*
First Label caption
1565A
fit 1
100
*
Second Label caption
1545B
fit 2
500
*
Third label caption
Empty
*
What is the best way to achive this with DLookUp or with SQL?
We have about 5 Sections and maximum 6 machines per section.
*
Your help is really appreciated.
*
Priyan