Consulting

Results 1 to 3 of 3

Thread: Solved: need to query for booking?

  1. #1
    VBAX Regular
    Joined
    Jun 2007
    Posts
    22
    Location

    Solved: need to query for booking?

    Hi I have a table called tblBooking with following fields
    performance (data type number) primary key
    Seatnumber (data type text) primary key
    status (data type text) primary key
    Ticketprinted (data type yes/no)
    status at the start is all filled in with "FREE" when a customer makes a booking the customer primary key is entered so thus "FREE" becomes ALA025.
    I have created a querry called qryTicketDetails using fields from tblCustomer, tblPerformance and tblSeat.
    In qryTicketDetails I want check for customers that has made a booking what is the best way to do this?

  2. #2
    VBAX Expert Imdabaum's Avatar
    Joined
    Jun 2006
    Posts
    652
    Location
    RECAP:
    status fields are all FREE until the ticket is booked, then status holds the primary key associated with a customer?

    I would think the simplest way to do it would be to query against tblBooking and tblCustomer Joined on Status=customerid if status holds the customer primary key.
    Someday I'll understand everything...
    Even then...I'll still pretend I'm a beginner.

  3. #3
    VBAX Regular
    Joined
    Jun 2007
    Posts
    22
    Location
    Imdabaum,

    Your recap is spot on.

    I will give your suggestion a go.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •