I have a createForm() procedure that appears to be working and putting in controls in the detail section. I want to put the labels in the header section. As this will be a distributed .mde file I want to use vba to dynamically create the form rather than using a template. I wa using the following in order to turn on the Header (and Footer) section.
I have (after the declaring the variables)
I am getting error 2046 'Unable to run command acFrmHdrFtr at this time' on the doCmd line.
Other posts I've read about this suggest this should be the way to do this. Can anybody help?
I have (after the declaring the variables)
Code:
set frm = CreateForm() docmd.runCommand(acCmdFormHdrFtr) with frm .recordSource = tblName '... and so on
Other posts I've read about this suggest this should be the way to do this. Can anybody help?
Comment