Dsum Syntax Problem

A

ashley

I have designed a report in Access 97 and need help with
the syntax of a calculated field named [total]
Currently, it counts all the attendance hours in the
attendance_clock_in table for a particular student and
then subtracts that number from another field on the
report. This works fine.

=Format(Nz(DSum
("dailyhours","attendance_clock_in","studentid=" &
[employeeid]),0),"0.00")-[sumofhours]

However, what I want it to do is count only the
attendance
hours in the attendance_clock_in table up to a particular
date that the user needs to get prompted to enter when
the
report runs.

First, how would the syntax look to do that and if I
prompt the user to enter the ending date, can I use that
field when doing the calculation?

P.S. [dailyhours] is a number field in the
attendance_clock_in table, [studentID] is a number field
on the report and [employeeid] is a number field in the
table. [sumofhours] is another number field on the
report.
..
 
D

Duane Hookom

Dsum() is rarely required or necessary in a report. Is attendance_clock_in
in the record source of the report?
 

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

Similar Threads

Syntax 2
Need Help with DSUM syntax 1
Need help with FORMAT syntax 3
Dsum Syntax Help 4
Find First 2
Syntax error in Dsum 5
Overflow error 3
DSum with Criteria 8

Top