An easy one I think

  • Thread starter Thread starter Sandy
  • Start date Start date
S

Sandy

Hi
I am creating some forms on the fly and I have 10 of them
set up already. I am having a silly problem when trying
to refer to each individual form because I need to set the
form via code.

Ie
strFormName = "ARPage" & z
docmd.OpenForm strFormName
Set frm = Forms!strFormName

The last line doesn't work because it is looking for a
form called strFormName instead of ARPage1.

Can someone please tell me how to set the form.

Thanks in advance
Sandy
 
Back
Top