Results 1 to 4 of 4
  1. #1
    mnl is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    4

    Selected record want to show on the form

    Hi!

    I have Vendor Data Entry Form which included
    ID
    Name
    Address

    I added the OnEnter event under ID that pop up the Qry Subform of Vendor itself mentioned all the records related with that ID. ( I have no PK on ID because some vendor have different address).Now I have no idea how to do.
    I want to double click on the one record from the Qry subform and want to see automatically fill up all the fields in the "Name" and "Address" of Main Form.

    It's already



    Thanks.

  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,929
    A 'subform' should not be a 'popup'. A subform sits on the main form and Master/Child links properties of the subform container control will synchronize related records.

    You want the Name and Address values to fill the subform? Or you want Name and Address info from subform record to fill the main form? Why not using a combobox on main form?
    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
    mnl is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    4
    Sorry. Not Pop up. I mean refresh:-)
    Thanks for the reply , Mod. Is it possible to do this way. There is Order_Form that included
    Order_ID
    Description
    Vendor_ID
    Vendor_Address

    On the order_form, there is one command button that can see all vendors list by popup datasheet or message box or something. Once you think the vendor that you looking for is in the table, double click on it. Once you click on the record, the whole Vendor_ID and address will go into the related fields on Order_form.
    I'm thinking about combo box but I don't want it since i have thousands of vendor.
    Appreciate in advance..:-)

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I don't have problem with combobox that has several thousand rows. You should try it before giving up on it. Anything else will probably be much more complicated and less reliable search. Set the combobox up as multi-column, RowSource like:

    SELECT VendorID, VendorName FROM Vendors ORDER BY VendorName;

    Other Properties:
    ColumnCount: 2
    BoundColumn: 1
    ColumnWidths: 0";2"
    AutoExpand: Yes

    Then use the NotInList event to handle new vendors.
    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: 2
    Last Post: 11-30-2011, 07:24 PM
  2. Replies: 9
    Last Post: 10-12-2011, 02:34 PM
  3. Replies: 1
    Last Post: 03-31-2011, 12:18 PM
  4. Replies: 1
    Last Post: 10-13-2010, 12:40 PM
  5. Loading the form with selected record
    By emilylu3 in forum Access
    Replies: 1
    Last Post: 12-09-2005, 07:49 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