Results 1 to 4 of 4
  1. #1
    cowboy is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2010
    Posts
    291

    popup form to fill in data field

    I have a form1 that has a field that has many options and instead of creating a combo box with a ton of options I want to open a popup form that I will set some filtering and searching options and when the user selects the item they want it will return the value to form1 in the specific field.

    I think I can do this with an on click event with a text box and then when the user selects the option they want I can have the vba code insert the data into the textbox I am trying to fill in.



    Does anyone have any other ideas or ways that they have done this?
    Thanks.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Global variable declared in a general module. Beware, global variables lose value if code execution is interrupted. Access (queries, forms, reports) cannot refer to VBA global variables.

    TempVars - do not lose value if code execution is interrupted. Access can refer to TempVars.
    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.

  3. #3
    cowboy is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2010
    Posts
    291
    Yeah I thought TempVars would be a good way to do it, wasnt sure if I could do it with calling a function and returning a value.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    A function could reference global variable and Access can refer to function. Same issue if code is interrupted.

    TempVars can be called directly, don't have to be in a function.
    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. Replies: 4
    Last Post: 02-14-2014, 11:09 AM
  2. Replies: 11
    Last Post: 01-10-2013, 06:23 PM
  3. Replies: 6
    Last Post: 09-10-2012, 07:19 AM
  4. Replies: 1
    Last Post: 12-21-2011, 02:11 PM
  5. Replies: 7
    Last Post: 12-11-2009, 01:44 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