•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MS Access and FileMaker Pro section within the Web Development category of DaniWeb, a massive community of 403,031 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,895 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS Access and FileMaker Pro advertiser: Programming Forums
Views: 816 | Replies: 2
![]() |
Hey All!
I'm currently creating a database for a payroll system. I have a table consisting of Occupation_ID (primary key), occupation_description, normal_rate and then 3 different overtime rates. I've created a query to calculate the overtime rates for the different overtime rates, i.e.
For each different overtime rate, the occupation_rate_normal is multiplied by a different value.
I then created a form that displays all the fields in the Occupation Rates Table and allows the user to add, delete and edit the various fields. I also created buttons to run the 3 queries to calculate the overtime rates. Thats where i'm struggling.
I want the queriesto apply only to the selected record, i.e. if i add a new occupation with
Occupation_ID = 10, Occupation_Desc = Accountant, Normal_Rate = R50, i want to calculate the overtime rates just for that entry, but the way i've done it, it runs for every record in the table.
Any suggestions on how i can change it so it updates only a single record would be much appreciated.
Thanks
Laura
I'm currently creating a database for a payroll system. I have a table consisting of Occupation_ID (primary key), occupation_description, normal_rate and then 3 different overtime rates. I've created a query to calculate the overtime rates for the different overtime rates, i.e.
UPDATE Occupation_Rates_Table SET occupation_rate_overtime_1 = Occupation_Rate_normal*1;
For each different overtime rate, the occupation_rate_normal is multiplied by a different value.
I then created a form that displays all the fields in the Occupation Rates Table and allows the user to add, delete and edit the various fields. I also created buttons to run the 3 queries to calculate the overtime rates. Thats where i'm struggling.
I want the queriesto apply only to the selected record, i.e. if i add a new occupation with
Occupation_ID = 10, Occupation_Desc = Accountant, Normal_Rate = R50, i want to calculate the overtime rates just for that entry, but the way i've done it, it runs for every record in the table.
Any suggestions on how i can change it so it updates only a single record would be much appreciated.
Thanks
Laura
![]() |
•
•
•
•
•
•
•
•
DaniWeb MS Access and FileMaker Pro Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Updated : Simple ASP.Net Login Page (ASP.NET)
- MS Access 2000 - Inserting records in a new table by joining input from two tables (Visual Basic 4 / 5 / 6)
- A C++ CGI Problem (C++)
- Sql Injuction (Viruses, Spyware and other Nasties)
- text field values to php variable....... (PHP)
- Problems with INSERT INTO and ADO (Visual Basic 4 / 5 / 6)
- Very strange (PHP)
- SQL DB Connection Problems (MS SQL)
- Got some anoying spywares, please help, i have hijack log inside! (Viruses, Spyware and other Nasties)
- not-a-virusadware (Viruses, Spyware and other Nasties)
Other Threads in the MS Access and FileMaker Pro Forum
- Previous Thread: MS Access Forms - Deleting related records from other tables when deleting a record
- Next Thread: Pulling only one medal for a team in Olympic database


Linear Mode