I have created a project tracking database that contains a form for entering
and viewing data for each unique project ID. I also have a table for time
tracking so that I can track how many hours are spent working on each
project. This table can have many entries for each project.
I created a query to total the number of hours by project ID. I want to use
this query to feed my main form with the total for each unique project. In
my main form, I am trying to use an IIF statement that returns the total
hours from the query if the project ID matches that on the main form/table.
I am getting a #Name? error in the total hours text box and I can't figure
out why.
The main table and the time tracking table are linked by the project ID.
Any help or suggestions would be greatly appreciated.
Thank you.
Mickey
=IIf([Main Table]![Project ID]=[Project Time Summary]![Project ID],[Project
Time Summary]![Total Hours],"Unknown")
....where [Project Time Summary] is the name of the query. The query runs
fine by itself.
Mickey
I've done this. The query works. How do I get the total hours into the
"Total Hours" field on the form? What is the correct syntax?
Thanks.
Mickey