I am a bit rusty at Access and am trying to think of the best way to create a way to order clients tickets, any feedback on my thoughts is appreciated:
Here are the tables I have ATTRACTIONS (lists all attractions you can buy tickets for) ORDER_DETAILS (Order_detailID, ticket type, number of tickets, price) ORDER (orderID, total cost, deposit required etc) and finally CLIENT (clientID, name etc)
So, firstly I am thinking the attraction needs to be chosen. I have a search form where this can be done. Once chosen I can bring up a form with that attraction and the order details in a subform, allowing my to enter new order details for that attraction. Now here is my first problem. I also have a PRICE table in my database listing all ticket type (adults etc) for each attraction and the actual current price. When the person chooses the ticket type on my form (i.e. adult) I would like to have the price field in the Order_Detail table automatically populated. The calculation would be "look at PRICE table and find a match where AttractionID and ticket type are equal to the one on the subform THEN multiple it by the 'number of tickets field' in the form. I hope that makes sense.
Am I making this too complicated? Because I realise it means that if there are multiple attractions on an order then they would have to go back and find another attraction meaning I somehow have to store the OrderDetail so it is the same. Once they have added all tickets for all attractions I somehow have to allocated the next OrderID in table order and populate the total cost and deposit required.
Am i going down the right lines here? Thanks in anticipation!