Print Thread
QBE Concern/Question
#682 07/12/00 09:39 AM
Joined: Jan 2000
Posts: 35
Pottstown, PA USA
D
DaveH Offline OP
Member
OP Offline
Member
D
Joined: Jan 2000
Posts: 35
Pottstown, PA USA
I have a TOraclewwDataset Component with the following SQL:

SELECT MASTNAME.*,MASTNAME.ROWID FROM MASTNAME
WHERE NAMEFLD >= :LN

When I use QBE, it is necessary to reset the variable :LN to something like "!" so that the QBE can be properly executed. What happens is this:

Say the first Query sets LN = 'AARON'
Then, by QBE the user wants to search for Last NAME (LN) = 'JONES', all is OK...

But if the first Query sets LN to 'JONES', and the user subsewuently wishes to search for Last Name (LN) = 'AARON', the query fails, because even though the QBE is executing, the PREVIOUS value of LN ('JONES') still has control of the query, and no results are shown.

Any suggestions?
Dave

Re: QBE Concern/Question
#683 07/14/00 04:14 PM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
This is the way that QBE works, it limits the result set of the original query. You must either change the original query and remove the where clause, or change the query variable values like you have already done.

If the original query had not been a range query, you could have used QBE instead of a hard-coded where clause.

------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.031s Queries: 14 (0.010s) Memory: 2.4971 MB (Peak: 3.0393 MB) Data Comp: Off Server Time: 2024-04-29 18:22:38 UTC
Valid HTML 5 and Valid CSS