Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2002
    Location
    Belgium
    Posts
    243

    Unanswered: Error : "Can't find the form"

    Hello,

    In my DB I have a form called "frm1".
    When writing code, it does not show this particular form when I type 'form_frm' and press Ctrl + space (autofill)
    All other forms are listed there execpt this one.

    Also when I want to call a procedure from this form :
    Call Forms("frm1").Procedure1
    it gives an error saying "Can't find the form referred to in a macro or VB"

    I already used same code, but for other forms, and that works.

    Anyone any idea why my form is not recognized?

    Thanks

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Try a compact and repair?
    George
    Home | Blog

  3. #3
    Join Date
    Nov 2002
    Location
    Belgium
    Posts
    243
    Thanks for your reply.

    Unfortunately 'Compact & Repair' did not solve the issue

  4. #4
    Join Date
    Nov 2002
    Location
    Belgium
    Posts
    243
    The strange thing (at least for me) is that it does open the form when I write :
    Docmd.OpenForm ("frm1')

  5. #5
    Join Date
    Apr 2004
    Location
    Derbyshire, UK
    Posts
    789
    Provided Answers: 1
    Hi

    Just a thought, for

    Call Forms("frm1").Procedure1

    to work, both the form has to be open and Procedure1 has to be declared as Public ??

    MTB


    MTB

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •