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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |