Appologies but I tried to post an error dialogue box with my last post "User-defined Object not defined". I now see that this didn't post correctly.
I wll try these suggestions but I have now discovered that form's VBA code will not compile.
The first line of Function InsertFrames() is highlighted by the Debug Compile tool.
I have the following Object References selected
Visual basic For Applications
Microsoft Access 12.0 Object Library
OLE Automation
Microsoft Office 12.0 Access database Object library
Microsoft ActiveX Data Objects 2.8 Library
Do I need other object libraries selected?