on 10-12-2005 12:19 PM
Hi,
I want to write a formatted search that performs a calculation differently depending on whether the user has started a new sales order or has opened a saved sales order.
My question is: When the query runs how do I differenciate between a new document and a saved document.
Thanks,
Conor.
I don't know what exactly you want to do but since this can't be done by SBO, check the database. The SQL keywords 'exists', 'in', or 'any' may help.
-->IF EXISTS(expression) then ...
-->select ....where EXISTS(expression)
-->select..where something IN (select..)
-->select...where someting=ANY (select...)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had just managed to solve it there myself using exists. And when I returned to the question you had replied suggestion to use exists... ! In the query I just checked something like the following
if exists(select * from ordr where docnum = $[ordr.docnum])
BEGIN
.
.
.
END ELSE BEGIN
.
.
.
END
Cheers for the help!
Conor.
User | Count |
---|---|
98 | |
12 | |
10 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.