A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Mysterious textbox in report



 
 
Thread Tools Display Modes
  #1  
Old September 23rd, 2004, 10:17 AM
external usenet poster
 
Posts: n/a
Default Mysterious textbox in report

I had a query ("qry_student_mks") which had many
calculated fields including one named "Student_rank" for
calculation students rank/positions within their class
according to average marks. It used Dlookup to do this but
it produced inconsistent results. I then made a 2nd query
("qry_student_mks2")based on the 1st one to calculate
student rank using a subquery (select count(*).....)I
could not put this field in the 1st query due to a
circular reference error.

Since then, the "student_rank" textbox within a report
whose source is the 2nd query("qry_student_mks2")shows
#error.
HOWEVER, this 2nd query displays the correct results for
this field in its datasheet view.

What am I not doing right???PLease help.


  #2  
Old September 23rd, 2004, 03:53 PM
martin
external usenet poster
 
Posts: n/a
Default

Give it an alias in query design like

mystudentrank: dlookup("[rank]",...)

That is a different name than your first query for rank.

Martin

-----Original Message-----
I had a query ("qry_student_mks") which had many
calculated fields including one named "Student_rank" for
calculation students rank/positions within their class
according to average marks. It used Dlookup to do this

but
it produced inconsistent results. I then made a 2nd query
("qry_student_mks2")based on the 1st one to calculate
student rank using a subquery (select count(*).....)I
could not put this field in the 1st query due to a
circular reference error.

Since then, the "student_rank" textbox within a report
whose source is the 2nd query("qry_student_mks2")shows
#error.
HOWEVER, this 2nd query displays the correct results for
this field in its datasheet view.

What am I not doing right???PLease help.


.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem formatting the border around a textbox on a report Amit Setting Up & Running Reports 2 October 24th, 2004 04:04 PM
programmatically add controls to report G Setting Up & Running Reports 2 August 4th, 2004 09:11 PM
6 Tables, 1 Report, W/O 6 Qrys Andy Setting Up & Running Reports 9 June 29th, 2004 09:52 PM
Label SRIT General Discussion 2 June 22nd, 2004 09:42 PM


All times are GMT +1. The time now is 11:28 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.