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

    temporary variables and combo box

    Hi



    I have a combo box setup to list parishes and a button

    The in click action is a macro

    SetTempVar

    name: varParish

    Expression: [cboParish]

    where the combo box has the name cboParish.

    It does not seem to function when I run my query.

    Can you use a combo box to do this? Do I have to set the format of the combo box?

    Is there a way so seeing if the temporary variable is created OK?

    thanks

    Ian

  2. #2
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,417
    Don't know about the macro code, but if you want to see the value of that tempvar go to the VBE Immediate window and type:
    ?tempvars!varParish. If it shows NULL, then it has no value.

  3. #3
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453
    Hi

    thanks for that I now know my issue is with the variable setup

    cheers

    Ian

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

Similar Threads

  1. Replies: 2
    Last Post: 03-30-2015, 09:12 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. Replies: 10
    Last Post: 03-04-2012, 12:17 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