I've described my class project in previous posts. Briefly, I chose to create a fictional airline. I have to include a way of relating financial info. I want to take values from various tables, perform calculations on them and use those values in other tables. In particular, I want to use the fields "BaseFare," in tblFlights with "TaxRate" and "AirportFee" in tblAirports to calculate "GrossFare" in tblFlights. I also want to use this information to generate invoices (tickets?) for customers.
I'm not sure that I do the required calculations inside tables, or if I should use queries or reports? I have a tblInvoice for invoices, but I'm not sure if I should have the table, or what I should put in it. For now, it just has InvoiceNum (Autonumber field, Primary key) and CustomerID (Foreign Key from tblCustomer). I need a way of tracking how much customers owe and how much they have paid, but I'm not sure how I should do that. I have the feeling I should not use tblInvoice to store financial transactions. Maybe I should call it something else?
I would welcome suggestions on good accounting and programming practices.
I'm not sure that I do the required calculations inside tables, or if I should use queries or reports? I have a tblInvoice for invoices, but I'm not sure if I should have the table, or what I should put in it. For now, it just has InvoiceNum (Autonumber field, Primary key) and CustomerID (Foreign Key from tblCustomer). I need a way of tracking how much customers owe and how much they have paid, but I'm not sure how I should do that. I have the feeling I should not use tblInvoice to store financial transactions. Maybe I should call it something else?
I would welcome suggestions on good accounting and programming practices.