Hello again,
This Set newNode stmt is giving error 35603 "Invalid key"
The node key is the 3rd argument which is rs!model_number
The model number is char data type - the value i not always numeric.
I checked the value in ParentNode - it contains the order number as it should.
Does the key have to be numeric ??
Private Sub AddNode(ByRef newNode As node, ByRef ParentNode As node, ByRef rs As ADODB.Recordset)
'Set stmt gives Invalid key error
Set newNode = tvwDB.Nodes.Add(ParentNode, _
tvwChild, rs!model_Number, rs!Quantity_Ordered, _
rs!Quantity_Loaded, "smlBook"
'smlBook is an icon
End Sub
Thanks for your help, John
This Set newNode stmt is giving error 35603 "Invalid key"
The node key is the 3rd argument which is rs!model_number
The model number is char data type - the value i not always numeric.
I checked the value in ParentNode - it contains the order number as it should.
Does the key have to be numeric ??
Private Sub AddNode(ByRef newNode As node, ByRef ParentNode As node, ByRef rs As ADODB.Recordset)
'Set stmt gives Invalid key error
Set newNode = tvwDB.Nodes.Add(ParentNode, _
tvwChild, rs!model_Number, rs!Quantity_Ordered, _
rs!Quantity_Loaded, "smlBook"
End Sub
Thanks for your help, John