raziel3
Registered User.
- Local time
- Today, 17:20
- Joined
- Oct 5, 2017
- Messages
- 316
Good Day, I am trying to create a sales invoice (frmCalc) where by a user chooses an item from a Popup form (POP) and once selected it is transferred to a list box on the sales invoice form (frmCalc). After searching the internet I came across this: -
but i am getting a Run-time error 6014 'RowsourceType must be set to Value List'. Changing the combo box to Value List will not give me my product list to choose from.
Code:
On Error GoTo AddItem
For i = LBound(Forms!frmCalc!Sale.List) To UBound(Forms!frmCalc!Sale.List)
If Forms!frmCalc!Sale.List(i) = Forms!POP!Text4 Then
MsgBox " u cannot add this item"
Exit Sub
End If
Next i
AddItem:
Forms!frmCalc!Sale.AddItem (Forms!POP!Text4)
but i am getting a Run-time error 6014 'RowsourceType must be set to Value List'. Changing the combo box to Value List will not give me my product list to choose from.