sanders720,
A couple of points re your last posts:
(a) The syntax for the DLookup command requires the three parameters to be strings. Thus your version:
[tt]
=dlookup([Hours], timecards, [Employee Number] = 2255 AND [Date] =#4/21/2003# AND [Job Number] = 36435 AND [Order Number] = 1A AND [Op Number] =95)
[/tt]
needs to be modified to reflect this; ie; something like:
=dlookup([red]"[/red][Hours][red]"[/red], [red]"[/red]timecards[red]"[/red], [red]"[/red][Employee Number] = 2255 AND [Date] =#4/21/2003# AND [Job Number] = 36435 AND [Order Number] = [red]'[/red]1A[red]'[/red] AND [Op Number] =95[red]"[/red])
(b) Now in your report, you'd presumably like to tie the constants in the above example, to actual controls in the detail section of the report. To do this, use the control names, the & Concatenation operator, and our friends, single and double quotes; for example, the above line could become:
=dlookup([red]"[/red][Hours][red]"[/red], [red]"[/red]timecards[red]"[/red], [red]"[/red][Employee Number] = [blue]" & DetailField1 & "[/blue] AND [Date] = [blue]CVDate('" & DetailField2 & "') [/blue] AND [Job Number] = [blue]" & DetailField3 & "[/blue] AND [Order Number] = [red]'[/red][blue]" & DetailField4[/blue] & "[red]'[/red] AND [Op Number] =[blue]DetailField5[/blue][red]"[/red])
(c) As you can see, getting the syntax right can be a bit tricky, and you do need to know how to construct string expressions etc.
Finally, I'm still now quite sure I understand what you're trying to do; you might be better off to constuct a single query up front which contains the extended info you require, using the appropriate table joins in the query.
Let me know if this helps,
Cheers,
Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
(dont cut corners or you'll go round in circles)