Hi Friends,
I need a help.
I am trying to execute a query based on my criteria.
Like in new-form-instance trigger I have written:
select start_time into p_stime from time_sheet
where END_TIME is null
and employee_id = (select employee_id from employee_detail
where user_id = user);
:time_sheet.start_time := p_stime;
--(time_sheet is a database block and start_time is database clolumn)
execute_query;
Basically I want to execute my query based on p_stime but it isn’t doing. It simply pulls up p_stime in start_time column and doesn’t populate the other columns and says FRM; 40202 fields must be entered. I have also tried by assigning a where close in database block but no luck. Where am I doing wrong? How can I make it work?
Thanks in advance,
Anju
I need a help.
I am trying to execute a query based on my criteria.
Like in new-form-instance trigger I have written:
select start_time into p_stime from time_sheet
where END_TIME is null
and employee_id = (select employee_id from employee_detail
where user_id = user);
:time_sheet.start_time := p_stime;
--(time_sheet is a database block and start_time is database clolumn)
execute_query;
Basically I want to execute my query based on p_stime but it isn’t doing. It simply pulls up p_stime in start_time column and doesn’t populate the other columns and says FRM; 40202 fields must be entered. I have also tried by assigning a where close in database block but no luck. Where am I doing wrong? How can I make it work?
Thanks in advance,
Anju