Instancing a Microsoft Access form
February 20, 2005 8:32 PM Subscribe
I'm stuck instancing a Microsoft Access form. According to Litwin, Getz and Gilbert (Ch 8), the statement 'Set frm = New Form_frmMyForm' should create a new instance of frmMyForm, referenced via the 'frm' variable. However, when I try this I get a compile error "User-defined type not defined", and it highlights the code 'New frmMyForm'.
posted by Ritchie to Computers & Internet (6 answers total)
I'm using Access 2000, and the form in question contains subforms. Could this be the problem? Is there a workaround? Or is this just more Microsoft Access silliness that I have to program around? I can instance other forms successfully, it's just this one that seems to cause a problem.