Results 1 to 2 of 2
  1. #1
    Cosmo Monkey is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    15

    popup form

    Ok..Newbie here...
    This question might be simple, but so is my mind.
    I am trying to create a simple data base that use a combobox to select customer, I then have a button to open a popup form with a one to many relationship.
    Example.
    Customer
    Orders
    I would like the popup to pull the CompanyID from the MainForm to link to the Orders form.


    Having tried to search and find this answer I have found that the question seems to be simplier than the answer.

    Would this be an event or a procedure?
    Cosmo

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,900
    Simpler solution is a form/subform arrangement. No code required.

    Otherwise, need to either filter the popup's RecordSource or move to a record on the popup that matches criteria.

    Two options for filtering are

    1. parameterized query as the RecordSource of the popup

    2. code (I use only VBA) triggered by event such as button click.
    DoCmd.OpenForm "Orders", , , "CompanyID=" & Me.CompanyID

    Event code is a procedure.
    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: 1
    Last Post: 02-29-2012, 09:38 AM
  2. Popup form
    By marcsessoms in forum Forms
    Replies: 8
    Last Post: 02-17-2012, 08:53 PM
  3. form popup
    By fabiobarreto10 in forum Forms
    Replies: 30
    Last Post: 01-19-2012, 01:54 PM
  4. Popup form
    By triplee23 in forum Forms
    Replies: 1
    Last Post: 10-24-2010, 04:09 PM
  5. Popup Form
    By NISMOJim in forum Forms
    Replies: 1
    Last Post: 10-23-2010, 09:16 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