by aegean66 » Mon Apr 26, 2021 5:03 pm
I think I've been here before, and ended up having to work around it by populating arrays to add lines to quote via SQL (not ideal I know)
The following line of code does NOT work, it gives me a type mismatch error
If MyJiwaSalesQuote.SalesQuoteLines.AddInventoryItem(vPartNo, e_SalesQuoteLinePartNo, NewLineKey) = e_SalesQuoteLineReturnCodeSuccess Then
The following line of code DOES work (adds a line to a quote, but NewLineKey is given no value and remains empty) - Note the use of Chr(NewLineKey) instead of just NewLineKey
If MyJiwaSalesQuote.SalesQuoteLines.AddInventoryItem(vPartNo, e_SalesQuoteLinePartNo, Chr(NewLineKey)) = e_SalesQuoteLineReturnCodeSuccess Then