hi thank you very much for your classes i am enjoying a lot, just now reviewed lesson 4 ( Value Across Forms )
small question what if i have 3 different tables for companies for example, table for hotels , table for airlines, table for not either hotels or airlines - e.g.company to supply the bus.
based on this lesson to supply the company id, i should do 3 lists ( hotels, etc ) to open their form then a button to open orders or contacts and to supply the company id .
is there a better way? maybe through VBA i can make combo box that i chose first is it hotels or airlines etc then to choose one based on the previous combo box.
The better way is to have only 1 table for the companies. Then make a second table to assign the business category type (Hotel, Restaurant, Airline, etc.)
BUT what happens if a company can do multiple things? Hotel and Restaurant for instance.
Then you would need a 3rd "junction" table.
The best way is to keep going in your courses in order. You will learn as you go the better methods.
i cant store them in one table as hotel table is linked with a table showing booking details like check in date, number of rooms booked etc.
and the airline (company name) table is linked with some tables showing the details of the flight etc
the third table is to to store companies that offer buses services, hotels (sometimes we book hotels from local agency) so as you said the third table i can add category type (bus company, Local Agency Travel etc)
thats why i need 3 tables to store my suppliers. i have companyID attribute that is coming from three different tables.
i am modelling accounting system for travel agency that is offering Groups Travels .
I would still use one table for all of the different companies, and then if you need separate data for each, make related 1-to-1 tables for them. Your main CompanyT would have the fields that are common to all of them (name, address, phone, etc.) and then for the airlines you could have a related AirlineInfoT that had info specific to just airlines. But that's just my advice.
Abdulhadi QasemOP
@Reply 4 years ago
wooow another solution from different angle . i will wait as you said don't jump into your project until later stage. thank you very much. God Bless You
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Access Expert 2.