Q
Question Boy
I'm having a little difficulty passing a from varible as an input variable to
a function. the function is
Function ListFrmCtls(frm) As String
For Each ctl In frm.Controls
......
Now when I call it for the main form
ListFrmCtls(Forms![frm_Clients].Form
It works fine, but I need to run it for the subform as well and can't seem
to get the synthax right. Normally, I'd use something like
ListFrmCtls(Forms![frm_Clients]![frm_Clients Component Info].Form)
but it doesn't work and returns
"Run-time error 2465
.... can't find the field ... referred to in your expression"
What would be to proper synthax to use?
Thank you,
QB
a function. the function is
Function ListFrmCtls(frm) As String
For Each ctl In frm.Controls
......
Now when I call it for the main form
ListFrmCtls(Forms![frm_Clients].Form
It works fine, but I need to run it for the subform as well and can't seem
to get the synthax right. Normally, I'd use something like
ListFrmCtls(Forms![frm_Clients]![frm_Clients Component Info].Form)
but it doesn't work and returns
"Run-time error 2465
.... can't find the field ... referred to in your expression"
What would be to proper synthax to use?
Thank you,
QB