robsworld78
Registered User.
- Local time
- Today, 14:35
- Joined
- May 31, 2011
- Messages
- 99
Hi, I have a form that has 3 subforms, one subform is linked to the main form and the other 2 subforms are linked to that subform.
The 2 subforms that are linked to the same subform and bring up the same data and have the same amount of rows or records, these subforms are set to continious form. One of them uses a query thats locked and one uses a query that allows editing.
Theres a field on the subform thats locked and I want to copy it to the other subform, When I use the following code it uses the first record from the NightCountInventorySubform and fills all the records on the other subform with it.
=[Forms]![NightCount]![NightCountInventorySubform].[Form]![BarsReturned]
That code is in barsleft in subform3
This is what results
Subform 2 _______________Subform 3
BarsLeft ________________ BarsLeft
18 _____________________18
24_____________________ 18
12_____________________ 18
Obviously I need it to be
Subform2 ________Subform3
BarsLeft_________ BarsLeft
18______________18
24 ______________24
12______ ________12
As I mentioned Subform2 and subform3 are both linked to subform1 the same way.
The 2 subforms that are linked to the same subform and bring up the same data and have the same amount of rows or records, these subforms are set to continious form. One of them uses a query thats locked and one uses a query that allows editing.
Theres a field on the subform thats locked and I want to copy it to the other subform, When I use the following code it uses the first record from the NightCountInventorySubform and fills all the records on the other subform with it.
=[Forms]![NightCount]![NightCountInventorySubform].[Form]![BarsReturned]
That code is in barsleft in subform3
This is what results
Subform 2 _______________Subform 3
BarsLeft ________________ BarsLeft
18 _____________________18
24_____________________ 18
12_____________________ 18
Obviously I need it to be
Subform2 ________Subform3
BarsLeft_________ BarsLeft
18______________18
24 ______________24
12______ ________12
As I mentioned Subform2 and subform3 are both linked to subform1 the same way.