Results 1 to 2 of 2
  1. #1
    ReliabilityDave is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Apr 2018
    Posts
    3

    Run-time error 2450

    Hello again,



    I have an application where I replicate a form using a collection object using techniques described by Allen Browne http://allenbrowne.com/ser-35.html. In my form closing routine, I dimension a variable called tempForm as Form, then set tempForm = Forms("frmUPCSupportRequest") where frmUPCSupportRequest is the name of the form that was replicated. I can replicate this form up to 5x. The form frmUPCSupportRequest is part of my project, is open, and active but when the line set tempForm = Forms("frmUPCSupportRequest") is executed it produces run-time error 2450 "Cannot find the referenced form "frmUPCSupportRequest". I suspect I'm getting this error because the form name frmUPCSupportRequest has changed and is part of a collection but I don't know how to reference it. I use tempForm elsewhere in my program.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    What do you mean by the name has changed? Why would the name change? If the form has been renamed then use the correct name. If you have modified Allen's code then post your procedure for analysis.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. 2450 Error and How to Error Trap it
    By robbeh in forum Programming
    Replies: 11
    Last Post: 10-08-2014, 12:21 PM
  2. Replies: 1
    Last Post: 03-05-2014, 07:55 AM
  3. Run-Time Error 2450
    By dascoli in forum Programming
    Replies: 7
    Last Post: 05-28-2013, 10:49 AM
  4. Replies: 9
    Last Post: 06-08-2012, 07:52 AM
  5. error run time 2450
    By storm1954 in forum Forms
    Replies: 2
    Last Post: 05-11-2012, 06:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums