I have a form [frmPOLookup] with a combo box [cboPOLookup] that looks up purchase orders by [OrderID]
I have 2 different purchase types. Maintenance and Project.
On my purchase order form i run the following code which generates a PO# based on what type of purchase it is.
On my PO Lookup form is it possible to show in the drop down combo box the purchase order numbers with M's and P's
e.g Current
110416201
110416200
110416199
e.g Proposed
110416201P
110416200P
110416199M
I have 2 different purchase types. Maintenance and Project.
On my purchase order form i run the following code which generates a PO# based on what type of purchase it is.
Code:
Private Sub PurchaseType_Change()
If Me.PurchaseType.Value = 1 Then 'Maintenance
Me.PONumber = Format([OrderDate], "mmddyy") & Format([OrderID], "00\M")
ElseIf Me.PurchaseType.Value = 2 Then 'Project
Me.PONumber = Format([OrderDate], "mmddyy") & Format([OrderID], "00\P")
End If
End Sub
On my PO Lookup form is it possible to show in the drop down combo box the purchase order numbers with M's and P's
e.g Current
110416201
110416200
110416199
e.g Proposed
110416201P
110416200P
110416199M