Results 1 to 3 of 3
  1. #1
    bobhra is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    2

    Query (Filtering?) in a Form

    Hello,
    I am beginner in Access and besides that 2007 design makes no sense at all.

    Situation:
    I have 2 tables

    Courses
    --------
    CourseID - primary, text
    Capacity - number
    Tutor - text

    Books
    --------
    ISBN - primary, text
    Title - text
    Author - text
    CourseID - text, foreign key

    Scenario: The DB represents each course that has its own recommended books.
    I created One-to-Many relationship between Courses and Books tables as there may be several books recommended for one course and only one course for each book.

    Then I faced a problem - I need to design a form for querying recommended book information for any course that the user choices. Only the CourseID must be provided by the user, and course tutor, book title and author must be displayed. I need to use sub-forms as there will be many books recommended for one course, so all relevant information (and there may be really loads of rows) must be displayed in a grid sub-form.
    And I spent 2 days in a row trying to do it. It involved creating buttons and assigning filtering actions to them, playing around with object properties and so on. Nothing helped. I am pretty sure it can be achieved without using VB code as this task is really basic.

    To make everything more clear I attached the draft DB. Hope this helps. It has a form with a button to filter the form (near courseID field). Sub-form information updates, but not the Tutor field.

    Thank you in advance
    Last edited by bobhra; 01-09-2011 at 03:09 PM.

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694

  3. #3
    bobhra is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    2
    Thank you for the response.
    I did post it on several forums as this is a bit urgent, so having answers from many experts would be very helpful
    Besides that I figured out that this is not a very good example, as in this one it requires many-to-many relationship.
    Thanks for pointing to that forum, I updated the attachment and description.

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

Similar Threads

  1. Query to only show a value in a form from a query
    By cwwaicw311 in forum Queries
    Replies: 28
    Last Post: 03-27-2010, 02:31 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