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

Report getting wrong data

Status
Not open for further replies.

davidmcolaco

Technical User
Aug 1, 2005
102
PT
Hi have a report that gets data from a query.

Everything is fine, except for a field where it should appear a name, but appears the autonumber from the table where is that data.
Can someone explain me why is that?

Thanks
 
Is the table where is that data JOINed in the query ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
No, it's not. But when I run the query, everything is fine and appears the name I want to see, but in the report, I don't know why it doesn't.

 
Any chance you could post the SQL code of the query ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Sure, here it is:

SELECT [RECOR].*
FROM [RECOR]
WHERE ((([RECOR].Sup)="Sup. H" Or ([RECOR].Sup)="Sup. P" Or ([RECOR].Sup)="Sup. C"))
ORDER BY [RECOR].Sup, [RECOR].Departamento;

Thanks
 
And the problem is ?
ie what is missing and what are the relationships ?
BTW, hopefully you didn't use LookUp fields !

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
The query is running well so the problem is not on the query. The problem is on the report.
The report is based on this query that is running fine and everything is ok, except for one field where it should appear a name and appears the code.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top