I am using Access 2003 and I have a mainform with several subforms. All forms are bound. I have restricted the subforms to show a maximum of 3 records each. But really, what I want to do is auto-populate the text boxes with zeroes for 3 records each.
I want the user to change the value, but I want three records for each main record to show a zero value. I am thinking that I need to run a query with VBA when the form loads to achieve this, but I need to account for if the user changes the value to something other than zero.
My main table is called "Element" with a primary key (ElementID) among other fields. One of the tables that has a one to many relationship with Element is "ErgoArm". It contains a foreign key (ElementID) along with 4 number fields bound to the text boxes on the subform. These number fields are there to maintain ergonomic data used for calculations for each element in a process. Each element may have more than one value for each of these number fields but no more than 3 values. For example, one
element may require a worker to raise his arm straight up and then straight out again - this is two movements in one element require two data values. Some elements may not have any values - hence the zeroes.
Can anyone point me in the right direction??
I want the user to change the value, but I want three records for each main record to show a zero value. I am thinking that I need to run a query with VBA when the form loads to achieve this, but I need to account for if the user changes the value to something other than zero.
My main table is called "Element" with a primary key (ElementID) among other fields. One of the tables that has a one to many relationship with Element is "ErgoArm". It contains a foreign key (ElementID) along with 4 number fields bound to the text boxes on the subform. These number fields are there to maintain ergonomic data used for calculations for each element in a process. Each element may have more than one value for each of these number fields but no more than 3 values. For example, one
element may require a worker to raise his arm straight up and then straight out again - this is two movements in one element require two data values. Some elements may not have any values - hence the zeroes.
Can anyone point me in the right direction??
