Results 1 to 5 of 5
  1. #1
    Dega is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Calgary, AB
    Posts
    73

    Simple list/combo search fails

    I am using the wizard to create a simple record search on lastname/firstname (tblCustomers)

    Problem is when a subform (tblBookings) is on the page the search will not work period.

    I know it's related to the subform being there but don't know the reason.



    Thanks

  2. #2
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    Post the design views of tblCustomers & tblBookings and the properties for your combo box.

    You've provided insufficient information to help.

  3. #3
    Dega is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Calgary, AB
    Posts
    73
    Thanks for replying ...

    I have included the design view of tblCustomers & tblBookings (subform).

    Have made several attempts to use the wizard and then tried a sql query without using a wizard. I do have limited sql background but little with the access interface.

  4. #4
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    Attached is the table relationships (without all fields). Your view will have all fields.

    To filter tblBookings by CustomerID, start with a query in the design view, see jpg.

    To see the SQL just looki at the query in the SQL view.

    SELECT tblBookings.BookingID, tblBookings.CustomerID
    FROM tblBookings
    WHERE (((tblBookings.CustomerID)=[forms]![YourMainformName]![CustomerID]));

    Of course, add the columns you desire to the tables and to the query.

    This ought to give you a running start.

  5. #5
    Dega is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Calgary, AB
    Posts
    73
    Thank you for the advice and illustration.

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

Similar Threads

  1. 2 multi select list boxes on one search form
    By woodey2002 in forum Forms
    Replies: 2
    Last Post: 11-05-2010, 12:44 PM
  2. Create combo search form in subform
    By grant.smalley in forum Forms
    Replies: 6
    Last Post: 02-19-2010, 04:37 AM
  3. Simple combo box question
    By laqa in forum Queries
    Replies: 9
    Last Post: 08-03-2009, 08:32 AM
  4. Replies: 1
    Last Post: 02-25-2009, 07:29 PM
  5. Recalling Records from a Combo search
    By Dreamcatcher in forum Forms
    Replies: 0
    Last Post: 08-18-2008, 07:33 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