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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot retrieve data from Oracle table

Status
Not open for further replies.

jocamus

Programmer
Jan 25, 2011
1
US
I have this app in TD 2.1, so based in orademo.app from samples I tried to retrieve data from a a table which already exists. The login form works fine, but in the next window I have this line:

Call SalTblPopulate( tbl1, hSql, "SELECT ITEM_NO, QUANTITY, AMOUNT
INTO :tbl1.colItemNo, :tbl1.colQuantity, :tbl1.colAmount
FROM INVOICE_DETAIL
WHERE INVOICE_ID = 125454", TBL_FillAll )

but the app goes freeze. Any clue?? thanks


jorge
 
Is the SQL handle connected ? If so try qualifying both the tablewindow and the sql handle. eg 'frm1.tbl1' and 'frm1.hSql'.
If you return from SalTblPopulate , you can see if the Populate is actually executing ie 'If SalTblPopulate() Return TRUE , else Return FALSE' - put a break point AFTER the SalTblPopulate. Also immediatley before the SalTblPopulate, you should have a 'When SQL error' clause to trap any local SQL errors that occur with this execute. Come back if you need to know what to put in your 'When SQLError' clause.


See me at:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top