J
jubiiab via AccessMonster.com
I have form with a subform. On the mainform I have a history of all kind of
machine parts. In the subform I have information of a supplier. Some Machine
ID’s have more then one supplier attached.
The subform look like this if I have more then one supplier attached to a
machine (only showing few fields and I using continues form view):
[SupplierID] [SupName] [SupMachineID] [SupMachineName] [UseSupplier]
1 Test1 54564763 MachineTest
[_] (checkbox)
2 Test2 9788979 MachineTest2
[x] (checkbox)
3 Test3 9788979 MachineTest3
[_] (checkbox)
I am using this code in the subform:
Private Sub Form_Current()
If Me.UseSupplier = True Then
Me.SupName.ForeColor = vbGreen
Me.Supname.FontBold = True
Else
Me.Supname.ForeColor = vbBlack
End If
End Sub
My problem is when I have a checkmark in the checkbox I get all [SupName]
green. I just want to have (like in the example above) [SubName]=Test2 to
become green. What am I doing wrong?
Sorry about my English.
machine parts. In the subform I have information of a supplier. Some Machine
ID’s have more then one supplier attached.
The subform look like this if I have more then one supplier attached to a
machine (only showing few fields and I using continues form view):
[SupplierID] [SupName] [SupMachineID] [SupMachineName] [UseSupplier]
1 Test1 54564763 MachineTest
[_] (checkbox)
2 Test2 9788979 MachineTest2
[x] (checkbox)
3 Test3 9788979 MachineTest3
[_] (checkbox)
I am using this code in the subform:
Private Sub Form_Current()
If Me.UseSupplier = True Then
Me.SupName.ForeColor = vbGreen
Me.Supname.FontBold = True
Else
Me.Supname.ForeColor = vbBlack
End If
End Sub
My problem is when I have a checkmark in the checkbox I get all [SupName]
green. I just want to have (like in the example above) [SubName]=Test2 to
become green. What am I doing wrong?
Sorry about my English.