Hi all,
I have the followign problem:
I have parts that can have differents counters and I need to manage a form with a subform where in the form I have general data of a part and in the subform I want to display a kind of table with data related to counters definitions and in the cell the values that the counters have at different takes of values in the time.
I have defined these tables:
1) Parts(part_id, part_nr, part_name, part_location, etc...)
2) Part_Counters(part_counter_id, part_id, pc_name, pc_typ, etc...)
3) Read_Parts(read_part_id, part_id, rp_date, rp_status, etc...)
4) Read_Part_Counters(read_part_counter_id, read_part_id, part_counter_id, rpc_value, rpc_comment, etc...)
Part_Id is the link between Parts and Part_Counters
Part_Id is also the link between Parts and Read_Parts
Part_Counter_Id is the link between Part_Counters and Read_Part_Counters
Read_Part_Id is the link between the Read_Parts and Read_Part_Counters
How I have to manage the form and subform setting so that when I move to the next part the subform change and display in a title row the pc_name and pc_typ as label and in the detail all the rows registered with the differents Read_Parts related to the Part_id and in the grid cells the differents rcp_value for each counter?
If the part has 4 counters and I have made 10 reads I should have a subform with the first two colummns displaying the rp_date and rp_status and the next 4 columns the values of the 4 counters. The grid should display the 10 rows...
If the next part has 7 counters and I have made 25 reads I should have a subform with the first two colummns displaying the rp_date and rp_status and the next 7 columns the values of the 7 counters. The grid should display 25 rows... or display the first 10 rows and activate a scrollbar to see also the rest of the values.
To register new data I wanto to have also in the Form as much EntryFields as are necessary to enter the rp_date and rp_status and the n counters values.
Any suggestions how to synchronize and display the two forms and manage the data for new Entry and Modify existing one?
Kind Regards
Giovanni
I have the followign problem:
I have parts that can have differents counters and I need to manage a form with a subform where in the form I have general data of a part and in the subform I want to display a kind of table with data related to counters definitions and in the cell the values that the counters have at different takes of values in the time.
I have defined these tables:
1) Parts(part_id, part_nr, part_name, part_location, etc...)
2) Part_Counters(part_counter_id, part_id, pc_name, pc_typ, etc...)
3) Read_Parts(read_part_id, part_id, rp_date, rp_status, etc...)
4) Read_Part_Counters(read_part_counter_id, read_part_id, part_counter_id, rpc_value, rpc_comment, etc...)
Part_Id is the link between Parts and Part_Counters
Part_Id is also the link between Parts and Read_Parts
Part_Counter_Id is the link between Part_Counters and Read_Part_Counters
Read_Part_Id is the link between the Read_Parts and Read_Part_Counters
How I have to manage the form and subform setting so that when I move to the next part the subform change and display in a title row the pc_name and pc_typ as label and in the detail all the rows registered with the differents Read_Parts related to the Part_id and in the grid cells the differents rcp_value for each counter?
If the part has 4 counters and I have made 10 reads I should have a subform with the first two colummns displaying the rp_date and rp_status and the next 4 columns the values of the 4 counters. The grid should display the 10 rows...
If the next part has 7 counters and I have made 25 reads I should have a subform with the first two colummns displaying the rp_date and rp_status and the next 7 columns the values of the 7 counters. The grid should display 25 rows... or display the first 10 rows and activate a scrollbar to see also the rest of the values.
To register new data I wanto to have also in the Form as much EntryFields as are necessary to enter the rp_date and rp_status and the n counters values.
Any suggestions how to synchronize and display the two forms and manage the data for new Entry and Modify existing one?
Kind Regards
Giovanni