vba access - assign a form to a variable dynamically

R

rudigreen

Hi,

I have several forms, and i need to select one of them dynamically with
eval and
assign it to a variable here is an example of what i want to do,

dim frm As Form

Set frm = Eval("Forms![" & variableWithFormName & "]")
'So now i am supposed to use frm like normal form

but this doesn't work... anyone knows how to do this properly or to
correct my code

help is greatly appreciated.

Thanks
 
Top