Microsoft
Software
Hardware
Network
Question : oracle query question
if :control.start_date = (sysdate-1) and :control.end_date = (sysdate-1) then
If :control.p_seq_no != 1 then
msgbox.show('Error', 'Bucket not generated for the chosen date range', 'error');
:control.p_seq_no := null;
go_item('control.p_seq_no'
);
Else
go_item('control.pb_run');
End if;
Elsif :control.start_date = (sysdate-2) and
(:control.end_date between (sysdate-2) and (sysdate-1)) then
If :control.p_seq_no not in ( 2,1) then
msgbox.show('Error', 'Bucket not generated for the chosen date range', 'error');
:control.p_seq_no := null;
go_item('control.p_seq_no'
);
Else
go_item('control.pb_run');
End if;
End if;
--------------------------
---
If start date and end date is sysdate-1 then only bucket 1 can be chosen, ie p_seq_no (report parameter)
If start date is sysdate-2 and end date is between sysdate-2 and sysdate-1 then only bucket 1 or 2 can be chosen. My query above does not display the message if I choose a wrong bucket and also on return key does not go to the next field. How can I make it to work?
Answer : oracle query question
oh..ok.. i did not that it is a parameter. i thought it is a control block item.
Then try this :
to_number(trim(:control.p_
seq_no)) != 1
similarly,
to_number(trim(:control.p_
seq_no)) not in (1,2)
Thanks
Random Solutions
VMsafe
Will Changing an Administrator Account to a User Account Break Anything?
Powershell - Excell automation process still runs
Windows 2000 server and USB 2.0 Iomega External HDD
PHP Directory List Group and Sort
cucumber and webrat not finding rails flash message
Exchange swing migration, problems with first mail box moved unable to send external email
Does anyone have any experience with marketing their software at CNET / Upload / Download dot com ?
Dell Powerconnect 2816 and Cisco 871w - VLAN
I need more info on Server 2008R2 Native Backup limits and capabilities