Results 1 to 3 of 3
  1. #1
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453

    removng temporary variables

    Hi

    been having issues opening a form based on a queries based on temporary variable.

    the query runs once and then the second time hangs access.

    I tried all the usual things and following a post ensured that I added a remove tempvar to the form on close event.

    THis didn't solve the issue.

    However in a fit of madness I removed the remove tempvar command from the onclose event which was in VBA

    Code:
    TempVars.Remove "varBannsBrideSurname"
    and then created a macro to remove the tempvar again attached to the onclose event

    To my total surprise this seems to have cured the problem.

    Have no idea why but thought I'd share.

    Cheers



    Ian

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Thanks for the tip Ian!

  3. #3
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453
    Quote Originally Posted by RuralGuy View Post
    Thanks for the tip Ian!
    Not sure if it's a va;id "tip" could well be that my beginners VBA was wrong but either way been testing it all day and it hasn't messed up once!

    cheers

    Ian

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

Similar Threads

  1. temporary variables and combo box
    By Jen0dorf in forum Access
    Replies: 2
    Last Post: 06-27-2016, 12:13 AM
  2. Display a temporary message
    By mmaule in forum Access
    Replies: 2
    Last Post: 02-16-2015, 02:41 PM
  3. Temporary Tables
    By ajzpop in forum Access
    Replies: 5
    Last Post: 10-09-2013, 04:30 PM
  4. Creating a temporary set of records
    By BobBridges in forum Programming
    Replies: 11
    Last Post: 09-10-2013, 10:04 AM
  5. Temporary tables
    By MDB in forum Forms
    Replies: 3
    Last Post: 08-14-2011, 12:26 PM

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