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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the same field twice with a diff qry on each

Status
Not open for further replies.

coryras

Programmer
May 8, 2003
9
US
I am trying to use the field balance twice in a report. Each balance is for a different date. I made two separate queries for the two balances and used one query within another. When I try to use the fields in the report it says that the field balance may be referring to more than one table. I am not sure how to solve this error. Any advise would be appriciated. Thanks
 
Are the two balance fields named the same in each query? If so you will have to change one or both of them. Create an expression field:
Code:
txtBalance1: balance
in one query
Code:
txtBalance2: balance
in the other.....
 
Hi,
Within the query, you can create a custom field for the 2nd balance. I wrote an FAQ on how to create custom query fields: faq701-3273
Although my FAQ refers to functions, using functions is not necessary in your case.

HTH, [pc2]
Randy Smith
California Teachers Association
 
Hi CosmoKramer,
The information you gave me did the trick. Thankyou very much for your time and help.
coryras
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top