C
Clyde
I have a funtion like this:
Function SelectAnItem(By Ref ctl as control, strItem as string)
Have been successfully calling like this:
SelectAnItem(frm!lstModel, strLineItem)
where frm is dimmed as Form and lstModel is a list box.
All of a suddent this code now passes the ctl argument as the value of the
list box and of course the function fails. I have no idea what I changed
where to cause this change in behavior, but I know that ?frm!lstModle
obviously is the value of the selection. Makes me wonder how it ever worked.
In the calling procedure I have tried Set ctl = frm!lstModel (diming ctl as
control) and the result is the same.
So... how do I pass the control frm!lstModel to the function as a control?
Thanks in advance.
Function SelectAnItem(By Ref ctl as control, strItem as string)
Have been successfully calling like this:
SelectAnItem(frm!lstModel, strLineItem)
where frm is dimmed as Form and lstModel is a list box.
All of a suddent this code now passes the ctl argument as the value of the
list box and of course the function fails. I have no idea what I changed
where to cause this change in behavior, but I know that ?frm!lstModle
obviously is the value of the selection. Makes me wonder how it ever worked.
In the calling procedure I have tried Set ctl = frm!lstModel (diming ctl as
control) and the result is the same.
So... how do I pass the control frm!lstModel to the function as a control?
Thanks in advance.