Capturing Item Key

Can anyone help with a code snippet for capturing the item Key? Thanks, Robert

Reply to
rshuptrine
Loading thread data ...

Robert,

I give up, what's the item Key?

Reply to
Jeff

This gets you the last added item to the transaction.

Public Function Process(mySession As Object) As Boolean Dim ikey As Integer Dim ilc As String ikey = mySession.Transaction.Entries.Count If ikey 0 Then ' Assign ilc = the last item added to the transaction ilc = mySession.Transaction.Entries.Element(ikey).Item.ItemLookupCode MsgBox ilc Else ' Quit function if item was not found in database Process = False End If End Function

Rob

"Jeff" wrote:

Reply to
Rob

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.