Hi folks,
Following last week's SQL solution (thanks combo and andy), I've come across another snag. A have a report that uses a cross tab query as it's record source. I use a particular field (sort1) in the report header to support the the report sort order and that works fine. However, I now want to use that sort1 value to do some other processing in the report events - right now, in the Report-Open event where I currently assign report labels and field values. But I haven't been able to find a way to reference the sort1 value. I've tried me!sort1, Me.[txtsort] (the control on the report that uses sort1 as it's record source (and that control works as intended)). Even complex references like Reports!seriesresults!txtsort and so on ...
The purpose of this piece of the work is to change the control source of 'Points'should certain other criteria come ionto play and hence why I want/need to use the sort1 value in the Open event where the field control source is stated.
The error message is "Run Time error 2427 You entered an expression that has no value". I've attached a few records from the record source.
TIA for your thoughts on this and best regards
Brian
Following last week's SQL solution (thanks combo and andy), I've come across another snag. A have a report that uses a cross tab query as it's record source. I use a particular field (sort1) in the report header to support the the report sort order and that works fine. However, I now want to use that sort1 value to do some other processing in the report events - right now, in the Report-Open event where I currently assign report labels and field values. But I haven't been able to find a way to reference the sort1 value. I've tried me!sort1, Me.[txtsort] (the control on the report that uses sort1 as it's record source (and that control works as intended)). Even complex references like Reports!seriesresults!txtsort and so on ...
The purpose of this piece of the work is to change the control source of 'Points'should certain other criteria come ionto play and hence why I want/need to use the sort1 value in the Open event where the field control source is stated.
The error message is "Run Time error 2427 You entered an expression that has no value". I've attached a few records from the record source.
TIA for your thoughts on this and best regards
Brian