>>this._year = curryear + this.yearsadd >>this.sourcetable = "year1" >> >>use (addbs(fileloc) + this.originaltable) in 0 again alias (this.sourcetable) order tip_id >> >>select (this.sourcetable) >local lcFilter >lcFilter = [year = ] + alltrim(str(this._year)) >*>set filter to year = this._year && this is the problem line >set filter to &lcFilter >> >>this.grid1.RecordSourceType = 1 >>this.grid1.RecordSource = this.sourcetable >>this.grid1.column1.ControlSource = this.sourcetable + ".amount" >>this.grid1.column2.ControlSource = this.sourcetable + ".source" >>this.grid1.column3.controlsource = this.sourcetable + ".phase" >>>>