Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need access to second table value in report 1

Status
Not open for further replies.

ProgramError

Programmer
Mar 2, 2005
1,027
GB
Hello peeps

Stavros here ... only joking

I have a report based on a query created using the wizard and a little manipulation from myself. The query is based on one table and shows the correct number for a sum I did. I now need to subtract a value which is based in a totally different table from this sum created on the report. Any one know the correct syntax. I've tried the following...

=([NoProgs]-([notapes]))

=([noprogs]-([tblrecharges]![notapes]))

=([noprogs]-([tblrecharges].[notapes]))

noprogs is the calculated sum, tblrecharges is the other table and notape is the field I need the value from in the other table.

Thanks in advance.



Program Error
Programmers do it one finger at a time!
 
Hi
How about:
[tt][noprogs]-Dlookup("notapes","tblrecharges","SomeCriteria")[/tt]
 
Thank you. That works fine.

Ian M
p.s I gave u a star.


Program Error
Programmers do it one finger at a time!
 
Good. Thanks very much for the star.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top