this.Q3 = new ADOQ(this)
with (this.Q3)
sql = "select * from V_A1023"
active = true
endwith
with (this.Q3.rowset)
sort = "日期 DESC"
endwith
this.Q1 = new ADOQ(this)
with (this.Q1)
sql = "select * from V_A1021 WHERE 年月日=:年月日"
masterSource = form.q3.rowset
with (parameters["年月日"])
type = 'varChar'
value = " "
endwith
active = true
endwith
with (this.Q1.rowset)
sort = "年月日"
endwith
以前 不清楚 為何參數 需要 預設 value
從 每日幣別維護, 終於 發現問題了..
Q3.rowset 為NULL 時,
Q1的參數需要 一個預設值,讓 rowset 東西出現(裡面沒資料,但是架構在)
這時候 sort=’年月日’ 觸動後才不會 報錯….