I rarely use readonly queries but this must have worked at one stage. I currently get an error when I run the following bit of code.
Code: Select all
qryItems.disablecontrols;
qryItems.close;
with qryItems do
begin
sql.clear;
sql.add('SELECT * FROM ITEMTBL');
sql.add('WHERE ITEM_NUMBER=' + AddQuotes(stItem));
readonly := true;
open;
end;
qryItems.enablecontrols;
Any suggestions?