Results 1 to 4 of 4
  1. #1
    dandoescode is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    85

    Creating a broken reference

    I'm trying to test the functionality of some code I wrote to check for broken reference code and fix it as required. How do I create a broken reference, simply deleting the file doesn't seem to be possible; I have to close access to delete the file and upon opening access the installer fixes it..

  2. #2
    help_me_with_access is offline help_me_with_excel
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    262
    why can't you just raise an error on purpose to do this? if you don't know how the windows file system operates and interacts with access, just produce the error on purpose.

  3. #3
    dandoescode is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    85
    I don't understand what you mean create an error.. I think that's what I'm trying to do, how do I do it?

  4. #4
    help_me_with_access is offline help_me_with_excel
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    262
    Quote Originally Posted by dandoescode View Post
    I don't understand what you mean create an error.. I think that's what I'm trying to do, how do I do it?
    the ERR object in vb has a .raise method.

    so to raise and error, type ERR.RAISE(args). or you could probably just assign the appropriate err num directly to err.number and run the code through an err handler...??

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

Similar Threads

  1. error message about broken reference
    By keighley in forum Access
    Replies: 1
    Last Post: 05-10-2012, 06:42 PM
  2. Broken reference
    By cassidym in forum Reports
    Replies: 15
    Last Post: 09-18-2011, 07:57 AM
  3. Replies: 1
    Last Post: 06-23-2011, 07:19 AM
  4. Replies: 1
    Last Post: 06-18-2011, 10:00 AM
  5. Creating a reference to the subform.
    By evander in forum Forms
    Replies: 2
    Last Post: 05-26-2010, 09:39 AM

Tags for this Thread

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