Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why wont this work?

Status
Not open for further replies.

bookouri

IS-IT--Management
Feb 23, 2000
1,464
US
I put this code in the when-button-pressed event of a button on my form, I want it to get the nextval and plug it into the gc_block.idnumber - or the idnumber field in the table actually,
My select statement works find in test, but in the form I get an error - component nextval must be declared... this seems very simple but I can NOT make it work... any help would be appreciated...

declare

temp number(12);

begin

select gc_id.nextval into temp from dual;

:gc_block.idnumber := temp;

do_key('commit_form');

end;
 
Are you connected to Oracle when compiling this code?
Do you have access to gc_id sequence if it isn't in your schema?
Are there any objects other then sequence in your schema with the same name?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top