I need some assistance, again.......I want to try to use the following code, found in an article from this site, to cause a button to open a report based on the current open record. Problem is, in order to successfully key this table, I have to key two fields. How do I alter the code:
var
roi ReportOpenInfo ; parameters for the report.
rpt Report ; the report itself
tc tCursor ; used to capture the current record
endVar
tc.attach( keyField )
tc.setRange( KeyField.Value, KeyField.Value );
tc.instantiateView( "RIV:ANSWER" )
roi.Name = "MYREPORT"
roi.MasterTable = "RIV:ANSWER"
rpt.open( roi )
I could try to use an arbitrary field for the key, in order to just have one keyed field, but I have no clue how to go about this successfully.
Any help is, as always, greatly appreciated.
var
roi ReportOpenInfo ; parameters for the report.
rpt Report ; the report itself
tc tCursor ; used to capture the current record
endVar
tc.attach( keyField )
tc.setRange( KeyField.Value, KeyField.Value );
tc.instantiateView( "RIV:ANSWER" )
roi.Name = "MYREPORT"
roi.MasterTable = "RIV:ANSWER"
rpt.open( roi )
I could try to use an arbitrary field for the key, in order to just have one keyed field, but I have no clue how to go about this successfully.
Any help is, as always, greatly appreciated.