Home » Developer & Programmer » Forms » what is wrong with this code.??!
what is wrong with this code.??! [message #173354] Mon, 22 May 2006 01:29 Go to next message
qewani
Messages: 51
Registered: December 2005
Location: uaq
Member
during the run time it give me error whats wrong with it?
Begin
     select EMP_COUNT, COM_PHONE, COM_CANCEL_DATE, COM_ADDRESS, COM_EMAIL, COM_POBOX, DATE_CREATED, 
     COM_STATUS , COM_NATIONALITY, COM_TYPE, COM_NAME, OFF_OFFICE_CODE,EXPIRY_DATE,ISSUE_DATE,TRA_TRANSACTION_NO,
     PERMIT_NO 
     
     Into :MOL_COMPANIESES.EMP_COUNT, :MOL_COMPANIESES.COM_PHONE, :MOL_COMPANIESES.COM_CANCEL_DATE,
     :MOL_COMPANIESES.COM_ADDRESS,
     :MOL_COMPANIESES.COM_EMAIL, :MOL_COMPANIESES.COM_POBOX, :MOL_COMPANIESES.DATE_CREATED,
     :MOL_COMPANIESES.COM_STATUS, :MOL_COMPANIESES.COM_NATIONALITY, :MOL_COMPANIESES.COM_TYPE,
      :MOL_COMPANIESES.COM_NAME, :MOL_COMPANIESES.OFF_OFFICE_CODE,:MOL_PERMISSIONSES.EXPIRY_DATE,
      :MOL_PERMISSIONSES.ISSUE_DATE,:MOL_PERMISSIONSES.TRA_TRANSACTION_NO,
     :MOL_PERMISSIONSES.PERMIT_NO 
      
from MOL_COMPANIESES,MOL_PERMISSIONSES
where MOL_COMPANIESES.COM_CODE = :MOL_COMPANIESES.COM_CODE and 
MOL_PERMISSIONSES.PERMIT_NO = :MOL_PERMISSIONSES.PERMIT_NO and 
MOL_COMPANIESES.PER_PERMIT_NO =  MOL_PERMISSIONSES.PERMIT_NO;

End;

Re: what is wrong with this code.??! [message #173361 is a reply to message #173354] Mon, 22 May 2006 01:58 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
There's nothing wrong here. What makes you think so? Do you see any error message(s)?

Lucky guess: as you didn't use table aliases in the SELECT clause, could it be that one (or more) of the columns is ambiguously defined?
Re: what is wrong with this code.??! [message #173374 is a reply to message #173354] Mon, 22 May 2006 03:03 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Please give use the error code and the error message.

David
icon10.gif  Re: what is wrong with this code.??! [message #173381 is a reply to message #173354] Mon, 22 May 2006 03:52 Go to previous message
qewani
Messages: 51
Registered: December 2005
Location: uaq
Member
Thanks guys i have solved the problem.
^__^
Previous Topic: a strange requirement in FORMS
Next Topic: Percentiles in forms?
Goto Forum:
  


Current Time: Fri Sep 20 09:54:35 CDT 2024