Hi guys - not posted or done any development for a long time - so a little rusty 
I have an issue when trying to add new records from a list box (contains several cells of data) into another table using the code below (part only)
If any of the data is "empty" a Data Type Conversion Error appears - if ALL cells have data works fine!
If Me.PriceListItemsPicked.ItemsSelected.Count = 0 Then
MsgBox "MUST SELECT @ LEAST 1 ITEM"
Exit Sub
End If
Set ctl = Me.PriceListItemsPicked
For Each varItem In ctl.ItemsSelected
rs.AddNew
rs!CustomersID = Me.CustomersID
rs!Customers = Me.CustomersID
rs!PriceListID = PriceListItemsPicked.Column(0, varItem)
rs!Category = PriceListItemsPicked.Column(1, varItem)
rs!Description = PriceListItemsPicked.Column(2, varItem)
rs!Supplier1PackQty = PriceListItemsPicked.Column(3, varItem)
rs!Qty = PriceListItemsPicked.Column(4, varItem)
rs!SupplierSale = PriceListItemsPicked.Column(5, varItem)
rs!DisplayOrder = PriceListItemsPicked.Column(6, varItem) + 99
rs.Update
Next varItem
I have an issue when trying to add new records from a list box (contains several cells of data) into another table using the code below (part only)
If any of the data is "empty" a Data Type Conversion Error appears - if ALL cells have data works fine!
If Me.PriceListItemsPicked.ItemsSelected.Count = 0 Then
MsgBox "MUST SELECT @ LEAST 1 ITEM"
Exit Sub
End If
Set ctl = Me.PriceListItemsPicked
For Each varItem In ctl.ItemsSelected
rs.AddNew
rs!CustomersID = Me.CustomersID
rs!Customers = Me.CustomersID
rs!PriceListID = PriceListItemsPicked.Column(0, varItem)
rs!Category = PriceListItemsPicked.Column(1, varItem)
rs!Description = PriceListItemsPicked.Column(2, varItem)
rs!Supplier1PackQty = PriceListItemsPicked.Column(3, varItem)
rs!Qty = PriceListItemsPicked.Column(4, varItem)
rs!SupplierSale = PriceListItemsPicked.Column(5, varItem)
rs!DisplayOrder = PriceListItemsPicked.Column(6, varItem) + 99
rs.Update
Next varItem