harrymossman
Technical User
I have a form with a select-from list on it. The user selects an item on the list then pushes a button. The form runs a query based on the selection.
The value selected in the list (nameList.value) gets passed to the query but the table comes up blank.
I have run the query as a stand-alone query, with a name inserted in place of ~qName. It works fine.
Can anyone tell me what I am doing wrong?
The value selected in the list (nameList.value) gets passed to the query but the table comes up blank.
I have run the query as a stand-alone query, with a name inserted in place of ~qName. It works fine.
Can anyone tell me what I am doing wrong?
Code:
method pushButton(var eventInfo Event)
var
q query
tv tableview
r report
qName string
endVar
doDefault
qName=nameList.value
q=Query
ANSWER: :PRIV:projects.DB
ASSIGNED.DB | Assigned | Branch |
| ~qName, _join1 | Check |
LOG.DB | Year | Number |Assigned |
| Check | Check |Check _join1 |
EndQuery
if not executeQBE(q) then
errorShow()
msgInfo("Error","Unable to run query")
setMouseShape(mouseWait)
else
setMouseShape(mouseWait)
tv.open("projects.db")
endIf
endMethod