two tables to one report

G

Guest

I have a table "Flint Operations" which contains the "Task" field. When the
"Task" is equal to "Cabs Produced" I want the value. I have another table
"Quality" which feeds the report "Quality Daily Report". In the Date footer
I already have it counting the number of "Defects". I want to take the
number of "Defects" that were counted and divide it by the value of "Cabs
Produced" and have it appear in the Date footer with the text box next to it
saying "Number of Defects per Cab:". How do I get the report to grab the
value of the "Cabs Produced" from that table for that particular date?
 
G

Guest

Jeff,

I am trying to use that function, but coming up with an error. I have tried
writing it as follows:

=DLookup ([Actual], tblFlintOperations, [Task] = "Cabs Produced")

I just get an error #.
 
J

John Spencer

Syntax error.
The arguments to DLookup should all be strings. So your would need
something like:

=DLookup ("Actual"," tblFlintOperations", "Task = ""Cabs Produced""")
or
=DLookup ("Actual"," tblFlintOperations", "Task = 'Cabs Produced' ")


Mandy J.S. said:
Jeff,

I am trying to use that function, but coming up with an error. I have
tried
writing it as follows:

=DLookup ([Actual], tblFlintOperations, [Task] = "Cabs Produced")

I just get an error #.

Jeff Boyce said:
Mandy

Take a look at the DLookup() function in Access HELP.

--
Regards

Jeff Boyce
<Office/Access MVP>
 

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

Top