Click here to Skip to main content
15,913,339 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Im creating a library system and part of the system calculates any late fees. Now the late fee that the system calculates for the member needs to be added to the members record, how can i achieve this.

For e.g Member ID 1 has occured a late fee of £2.40 now this fee must be added to his record which consists of their member id, name, address, telphone number and late fees..
The £2.40 must be update in the late fees part of the record

how can this be achieved i cant seem to work it out.

can someone kindly direct me to achieving this

thanks
Posted
Updated 24-Feb-12 13:24pm
v2

1 solution

Not sure, what exactly you are looking for. If it is psudeo code, then it is listed below:

SQL
if (lateFee applicable for MemberID) then
  UPDATE libraymaster
  SET latefees=2.40
  WHERE memberid = MemberID
end if
 
Share this answer
 
Comments
alom_93 26-Feb-12 9:25am    
i'm looking for someone to show me how to implement what im after. The psuedo code has given me an rough idea but i cant implement it.
Can you please show me how?
thanks
codejet 7-Mar-12 9:25am    
There are so many ways of doing it its difficult to assist you when you have no provided any code. Just how are you accessing your data : DataSets , DataReaders and CommandObject, Linq etc........

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900