I am trying to build a database for a friend who teaches musical lessons in the evening.
I have set up a trial database in order to work out a solution
In a table called tblcustomer I am storing a customerID as a key field, as well as name, phone etc
In a table called tbllesson I am storing a lessonId as a primary key field and the clientID as a foreign keyfield. I also am storing the date, time and wether the client has paid or not.
All works well so far, I am able to add new clients, add new lessone, see what lessons a client has booked etc using forms and subforms.
What I would like to do is two fold. Add a field called number of lessons taken and then increment this automatically every time a client books a new lesson
I would also like to calculate the amount owed by each client, assumimg that say every lesson is £5
I could write all of the above in C or Pascal, however I am not sure how to do it in VBA
Any help would be greatly appreciated
I have set up a trial database in order to work out a solution
In a table called tblcustomer I am storing a customerID as a key field, as well as name, phone etc
In a table called tbllesson I am storing a lessonId as a primary key field and the clientID as a foreign keyfield. I also am storing the date, time and wether the client has paid or not.
All works well so far, I am able to add new clients, add new lessone, see what lessons a client has booked etc using forms and subforms.
What I would like to do is two fold. Add a field called number of lessons taken and then increment this automatically every time a client books a new lesson
I would also like to calculate the amount owed by each client, assumimg that say every lesson is £5
I could write all of the above in C or Pascal, however I am not sure how to do it in VBA
Any help would be greatly appreciated