JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1618
|
Re: problem with passing node.tag
Offhand, you should:
1) convert the tag to an integer
2) test to make sure your not at the BOF/EOF of the recordset before storing the values into a string variable
Although there are numerous (potential) problems...
Is adcEmp a control? If so you shouldn't be using it the way you are, unless you need results displayed.
If it's a variable for a connection, you can't do what you're trying to do.
For:
txtDeptList.Text = DeptList(Node.Tag)
it will set the return value to the result, given your code it will ALWAYS be ""
For:
txtDeptList.Text = str
in the function, it should be:
DeptList=str
|