M
mattc66 via AccessMonster.com
I have an unbound text box called TYPE, that I want to display the name of a
transaction type. See below code. I have added this to the BeforeUpdate and
the AfterUpdate and the TYPE remains blank.
This is DSform and the infromation is for display purposes only.
Does anyone have any suggestions on why this is not working and what I can do
to correct my ways.
Matt
Private Sub TYPE_BeforeUpdate()
If Me.TRANS_TYP = "S" Then
Me.TYPE = "SALES FORECAST"
End If
If Me.TRANS_TYP = "I" Then
Me.TYPE = "INVOICE"
End If
If Me.TRANS_TYP = "M" Then
Me.TYPE = "FIRM PLANNED MFG ORDER"
End If
If Me.TRANS_TYP = "F" Then
Me.TYPE = "WORK ORDER"
End If
If Me.TRANS_TYP = "R" Then
Me.TYPE = "FIRM PLANNED PO"
End If
If Me.TRANS_TYP = "P" Then
Me.TYPE = "PURCHASE ORDER (RELEASED)"
End If
End Sub
transaction type. See below code. I have added this to the BeforeUpdate and
the AfterUpdate and the TYPE remains blank.
This is DSform and the infromation is for display purposes only.
Does anyone have any suggestions on why this is not working and what I can do
to correct my ways.
Matt
Private Sub TYPE_BeforeUpdate()
If Me.TRANS_TYP = "S" Then
Me.TYPE = "SALES FORECAST"
End If
If Me.TRANS_TYP = "I" Then
Me.TYPE = "INVOICE"
End If
If Me.TRANS_TYP = "M" Then
Me.TYPE = "FIRM PLANNED MFG ORDER"
End If
If Me.TRANS_TYP = "F" Then
Me.TYPE = "WORK ORDER"
End If
If Me.TRANS_TYP = "R" Then
Me.TYPE = "FIRM PLANNED PO"
End If
If Me.TRANS_TYP = "P" Then
Me.TYPE = "PURCHASE ORDER (RELEASED)"
End If
End Sub