I use the following code in a push-button method in a form.
Now I want to use sql-commands but I don't know how to use the "qBill" variable in the sql commands.
I have also problems to change the "if not qvar.executeQBE". Is there an equal command for sql ?
The actual syntax is:
var
qVar Query
r report
qBill string
endvar
if billNo.value = ""
then qBill = "" ;get all bills
else qBill = ", "+billNo.value ;only the bill you want
endif
qvar = Query
Account.DB | Number | Date | Client |
| Check ~qBill | Check | Check |
EndQuery
if not qvar.executeQBE("riv:answer.db"
then errorShow()
endif
Now I want to use sql-commands but I don't know how to use the "qBill" variable in the sql commands.
I have also problems to change the "if not qvar.executeQBE". Is there an equal command for sql ?
The actual syntax is:
var
qVar Query
r report
qBill string
endvar
if billNo.value = ""
then qBill = "" ;get all bills
else qBill = ", "+billNo.value ;only the bill you want
endif
qvar = Query
Account.DB | Number | Date | Client |
| Check ~qBill | Check | Check |
EndQuery
if not qvar.executeQBE("riv:answer.db"
then errorShow()
endif