hi, I am currently writing a database for a local squash club.
I've tried to design it a few times but i seem to come unstuck along the way with the same problems.
The database stores member details such as name, address, telephone number etc. I put these into a table called tbl-members, which has the following fields;
tbl-members:
memberID (autonumber, primary key)
member name
member address
member telephone
I then have a seperate table to hold the contract details for each member;
tbl-fees:
contractID (autonumber, primary key)
memberID (lookup from members table)
general fee
visitor fee
total fees
The user needs to be able to store details about any visitors that members bring to the club, including a fee for each visitor. This is where my problem arises. So far, my attempts involved creating another 'visitors' table like this
tbl-visitors:
visitorID
memberID (lookup from members table)
visitor address
visitor fee
Now, the 'visitor fee' part is causing me problems. What i did was i created a form with subform, so that 'visitors details' could be added for members, i.e. one member could have more than one visitor. This works fine and the correct visitors are related to the correct members. However, say a member has two visitors, and the visitors fees are £10 and £5 respectively. I would want £15 (the total of the two) to be put into the "visitor fee" field of the "tblfees" table. I made the table into a form called "frmfees", but all formulas i have tried in the "visitor fees" field don't seem to work.
Any advice or possiblities would be greatly appreciated, or suggestions a on a better approach. I say this every post, but i am not very experienced in access....still, and there may be simpler or more effective ways around the problem
thanks in advance
I've tried to design it a few times but i seem to come unstuck along the way with the same problems.
The database stores member details such as name, address, telephone number etc. I put these into a table called tbl-members, which has the following fields;
tbl-members:
memberID (autonumber, primary key)
member name
member address
member telephone
I then have a seperate table to hold the contract details for each member;
tbl-fees:
contractID (autonumber, primary key)
memberID (lookup from members table)
general fee
visitor fee
total fees
The user needs to be able to store details about any visitors that members bring to the club, including a fee for each visitor. This is where my problem arises. So far, my attempts involved creating another 'visitors' table like this
tbl-visitors:
visitorID
memberID (lookup from members table)
visitor address
visitor fee
Now, the 'visitor fee' part is causing me problems. What i did was i created a form with subform, so that 'visitors details' could be added for members, i.e. one member could have more than one visitor. This works fine and the correct visitors are related to the correct members. However, say a member has two visitors, and the visitors fees are £10 and £5 respectively. I would want £15 (the total of the two) to be put into the "visitor fee" field of the "tblfees" table. I made the table into a form called "frmfees", but all formulas i have tried in the "visitor fees" field don't seem to work.
Any advice or possiblities would be greatly appreciated, or suggestions a on a better approach. I say this every post, but i am not very experienced in access....still, and there may be simpler or more effective ways around the problem
thanks in advance