G
Guest
I have a form that has a drop down box Part_Type and there are 2 selections
inside: Raw Material and Purchased Component - for this field I have the
following code:
Private Sub Part_Type_AfterUpdate()
If [Part_Type] = "Purchased Component" Then
[UOM] = "ea" & [Part_Weight].Visible = False
ElseIf [Part_Type] = "Raw Material" Then
[UOM] = "lb." & [Part_Usage].Visible = False
End If
End Sub
FYI, Part Weight & Part Usage are Number fields.
I want it to do 2 things, first change UOM to "ea" or "lb" which works ok by
itself but then I want the field "Part Usage" or "Part Weight" to not be
visible depending on the Part_Type.
Do I have the code wrong??
Thanks!!!!
inside: Raw Material and Purchased Component - for this field I have the
following code:
Private Sub Part_Type_AfterUpdate()
If [Part_Type] = "Purchased Component" Then
[UOM] = "ea" & [Part_Weight].Visible = False
ElseIf [Part_Type] = "Raw Material" Then
[UOM] = "lb." & [Part_Usage].Visible = False
End If
End Sub
FYI, Part Weight & Part Usage are Number fields.
I want it to do 2 things, first change UOM to "ea" or "lb" which works ok by
itself but then I want the field "Part Usage" or "Part Weight" to not be
visible depending on the Part_Type.
Do I have the code wrong??
Thanks!!!!