Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to add a field into PurchaseOrderEntry screen by using VBA?

Status
Not open for further replies.

1128

MIS
Nov 28, 2000
6
US
Hi,

How can I add a field into PurchaseOrderEntry screen and make the data saved with the PO?
is there any problem from the vb below?

==========================================

Option Explicit
Dim POECollection As DUOSObjects
Dim POEObject As DUOSObject




Private Sub PONumber_Changed()
Set POECollection = DUOSObjectsGet("POEInformation")
If PONumber.Empty = False Then
Set POEObject = POECollection(PONumber)

CarrierAddress = POEObject.Properties("Carrier Address")
CarrierPhone = POEObject.Properties("Carrier Phone")
End If
End Sub


Private Sub Save_BeforeUserChanged(KeepFocus As Boolean, CancelLogic As Boolean)
If PurchaseOrderEntry.Required = True Then
POEObject.Properties("Carrier Address") = CarrierAddress
POEObject.Properties("Carrier Phone") = CarrierPhone

End If
End Sub
======================================
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top