Results 1 to 2 of 2
  1. #1
    thudson is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    6

    Using a Form to display a record

    I am trying to design a database to show all the records when I choose one of the fields using a combo box.

    I have tried a couple of methods, but can't get it to work.

    1. I created a form with a sub-form and the main form is using the table that contains all of the data, but the Combo boxes record source is the field that I want to use as the source for the search. If I choose an item from the list all it does is change the field that is linked by the master child relationship that I have set in the properties. Even worse than this it also changes the master field to the value of the choice I have made. It only changes the first row in the table.
    The main form data source is the table and the sub-form has an SQL query also from the table, presumably created when I used the Form Wizard to create the sub-form.
    How do I get all of the form fields to reflect the choice I have made?
    Can I make the fields in the sub-form read only?



    2. I have also tried to put the combo box in the same form and again only the field I am using to choose the record is being changed. The record source for the form and the combo box is a query.

    Can you do what I am trying to achieve?


    What I finally want to do, once I have overcome the above problem is to use most of the fields in the chosen record to format a text box in a report, so that the text appears in a particular position on the page, however that may result in another post!

  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,771
    Controls used to input filter criteria must be UNBOUND.

    Review http://www.allenbrowne.com/ser-62.html
    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. Move record out and display It in another form ?
    By Lukael in forum Programming
    Replies: 5
    Last Post: 01-06-2016, 07:07 AM
  2. Replies: 2
    Last Post: 11-07-2014, 02:53 PM
  3. Replies: 3
    Last Post: 09-14-2011, 11:52 AM
  4. Display record on the form
    By foxtet in forum Forms
    Replies: 3
    Last Post: 06-14-2011, 04:30 AM
  5. Replies: 0
    Last Post: 07-31-2010, 12:09 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