hunterspot
Programmer
HI All
I have the following code. What I am trying to do is get new data into the cursor curplan. So I am assigning the rowsourcetype to value, delete the cursor and again assign the rowsourcetype to sql statement.
I am getting error 'Syntax Error' at the line where
this.cboplan.RowSourcetype = 3
I tried assinging the rowsource first and then rowsourcetype but still getting this error. Will you please let me know what am I doing wrong here and how to get this to work?
*******************
this.cboplan.RowSourcetype = 1
this.cboplan.RowSource = [ ]
IF USED([curPlan])
USE IN curPlan
ENDIF
this.cboplan.RowSourcetype = 3
this.cboplan.RowSource = [select descrip AS descript, VAL(descrip) AS desc, * from sg_plan where BETWEEN(thisform.proposalrecord.effdtereq,EffDate,TermDate) ORDER BY desc into cursor curPlan]
*this.cboplan.RowSourcetype = 3
*********************
Thanks in advance for your time.
I have the following code. What I am trying to do is get new data into the cursor curplan. So I am assigning the rowsourcetype to value, delete the cursor and again assign the rowsourcetype to sql statement.
I am getting error 'Syntax Error' at the line where
this.cboplan.RowSourcetype = 3
I tried assinging the rowsource first and then rowsourcetype but still getting this error. Will you please let me know what am I doing wrong here and how to get this to work?
*******************
this.cboplan.RowSourcetype = 1
this.cboplan.RowSource = [ ]
IF USED([curPlan])
USE IN curPlan
ENDIF
this.cboplan.RowSourcetype = 3
this.cboplan.RowSource = [select descrip AS descript, VAL(descrip) AS desc, * from sg_plan where BETWEEN(thisform.proposalrecord.effdtereq,EffDate,TermDate) ORDER BY desc into cursor curPlan]
*this.cboplan.RowSourcetype = 3
*********************
Thanks in advance for your time.