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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top