Modules public function

  • Thread starter Thread starter Frankie
  • Start date Start date
F

Frankie

I am trying to create modules for payroll taxes for a check.
I am starting simply by using two fields in a table.
HoursRg (LongInteger) * HourlyRt (Currency)
And call it in a report Control (Text30)
Any help would be appreciated

Thank You
Frankie
 
I am trying to create modules for payroll taxes for a check.
I am starting simply by using two fields in a table.
HoursRg (LongInteger) * HourlyRt (Currency)
And call it in a report Control (Text30)
Any help would be appreciated

No module and no code is needed. Instead create a Query based on your table.
In a vacant Field cell type

TotalPay: [HoursRg]*[HourlyRt]

Set the Control Source of your Report textbox to TotalPay.

Or, base the report on your table or on a query selecting records from your
table, and set the control source of Text30 to

=[HoursRg]*[HourlyRt]

Doing it in the query lets you more easily sort by or filter by the total pay,
or calculate subtotals or grand totals on the report, should you wish to do
so.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top