![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Почему не находит нужную запись? [D5, MSSQL]
Voland777 © (2004-05-17 18:56:00)В CrystalReport грузится :
PESetQuery(nReport,PCHar('select * from table where key=' + Query.FieldByName('Field').asString));
В отладчике вижу Query.FieldByName('Field').asString =1982
Запись с таким ключем существует. Но в отчете нет ни одной записи
Кто имеет опыт работы в Delphi с CrystalReport большая просьба помочь.
Voland777 (2004-05-18 09:15:00) [1]Спасибо
Mike Kouzmine (2004-05-18 02:11:00) [2]PESetQuery(nReport,PCHar('select * from table where key=' + QuotedStr(Query.FieldByName('Field').asString)));
Vlad (2004-05-17 19:09:00) [3]
> Voland777 (17.05.04 19:01) [1]
S:=Query.FieldByName('Field').asString; //S: string;
PESetQuery(nReport,PCHar('select * from table where key=' +S));
Voland777 (2004-05-17 19:01:00) [4]PESetQuery(nReport,PCHar('select * from table where key=' + Query.FieldByName('Field').asString)); //не работает
PESetQuery(nReport,PCHar('select * from table where key=' + '1982')); // работает !!!!!