Results 1 to 8 of 8
  1. #1
    LOUM is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2012
    Posts
    9

    Newbie SubForm Question

    Good Day,



    I have a subform I want to place on my form that shows and filters all the vendors I have in my database. I want to put a check box next to the vendors that the user has selected as relationable to the content they are filling out on the parent form.

    A. How should I relate the subform to the tblVendor for the user to choose the vendors?

    B. The resulting choices will then save to my main form table or a vendor selection table (normalization)?

    Thank you,

    LOU

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Don't understand what you are trying to do. What is purpose of this form? What is the main form RecordSource? We need to know more about data table relationships and structure. Do you want to provide db for analysis? Follow instructions at bottom of my post.
    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
    Join Date
    Apr 2012
    Location
    Los Angeles
    Posts
    75
    Lou, it sounds like you have a main form that user is entering data in that is bound to your main table. What you need to do is create another table called tblVendorsSelected (or whatever you want to call it). This table should have a foreign key that relates back to the main table primary key. If you add a subform that is bound to the new table to your main form and set the proper child/parent fields you should be able to have your users enter vendors directly in the list. In order to have a check boxed list you will need to load your vendors list into a temporary table that has a checkbox field in it and open this table in another form for your users to select from. You will have to clear that table and re-load the records each time. I will upload a sample for you shortly in my next post.

  4. #4
    Join Date
    Apr 2012
    Location
    Los Angeles
    Posts
    75

    Access 2007 - checkbox record selection example

    Attached is a sample database with the functionality you need. This is pretty rudimentary - so there is no error handling. Just take a look at frmMainTable for the sample. Hope this helps!
    Attached Files Attached Files

  5. #5
    LOUM is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2012
    Posts
    9
    Thank you both. I am new and this helps tremendously.

    Lou

  6. #6
    LOUM is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2012
    Posts
    9
    How do I mark the thread as complete?

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Under Thread Tools on menu bar above first post.
    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.

  8. #8
    LOUM is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2012
    Posts
    9
    Thank you.

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

Similar Threads

  1. newbie question
    By hannuk in forum Access
    Replies: 1
    Last Post: 12-12-2011, 07:18 AM
  2. Hi and a newbie question :)
    By wheelspin in forum Queries
    Replies: 3
    Last Post: 11-28-2011, 01:11 PM
  3. Replies: 7
    Last Post: 09-02-2011, 07:56 AM
  4. vba question from newbie
    By ninachopper in forum Access
    Replies: 17
    Last Post: 07-29-2010, 01:22 PM
  5. Question from a newbie
    By scarps626 in forum Access
    Replies: 2
    Last Post: 10-02-2009, 03:40 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