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

Memo and sql

Status
Not open for further replies.

twigs1981

IS-IT--Management
May 29, 2002
52
US
when I do the following:

SQLEXEC(PSI,'SELECT descript;
FROM BBSPECAL;
WHERE CFormFLDID=88 and LJOB=?
OrderNum', 'Results')

select Results
copy to array Resulted
thisform.txtLotNum.value = Resulted[1,1]


I displayed the cursor and it wasn't correct, it read memo... the descript col is a varchar(260) but the value in there is only 3 characters. anything obviously wrong here?
 
Basically you can't continue character strings like this. Try:
SQLEXEC(PSI,'SELECT descript ';
+ 'FROM BBSPECAL ';
+ ' WHERE CFormFLDID=88 and LJOB=?OrderNum', ;
'Results')
OR
lcSelect = 'SELECT descript ';
+' FROM BBSPECAL ';
+' WHERE CFormFLDID=88 and LJOB=?OrderNum'
SQLEXEC(PSI, lcSelect, 'Results')

Rick



 
ooops... well that was a dumb mistake however it still reads memo when I complete the query and it is returning more tupples(2 actually) and I'm using the primary key...

 
also when I go into debugging it doesn't show the memo as being in the array where did the value go?
 
aight I the dba fixed the database as far as the primary key but still stuck getting the value of the memo in the array...when I do a select it shows memo and I can dbl click it to can see the appropriate value in there... but when I try to just access the array it is .F. .

forever stuck,
josh
 
after many unsuccessful attempts I got this:

SQLEXEC(PSI,'SELECT RTRIM(descript)';
+ 'FROM BBSPECAL ';
+ 'WHERE CFormFLDID=88 and LJOB='
+ 'OrderNum', 'Req')
BC_req = Req.exp


... new Q though.. how can I get rid of the cursor?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top