TMyQuery (No SQL Statement Provided)
Posted: Thu 05 Nov 2009 11:54
hi Guys,
i am getting an error from TMyQuery (No SQL Statement Provide)
according to my logs it appear to happen after counting the records... here is a brief example of the code:
TMyQuery.SQL := 'SQL Statement'
while not TMyQuery1.EOF do
begin
TMyQuery1.SQL := 'SQL Statement'
if TMyQuery1.RecordCount > 0 then
DoSomenthing
end;
i know the error is very clear, but i do not understand why its happening...
Can you guys give me any sugestions?
Thank you,
Vladimir
i am getting an error from TMyQuery (No SQL Statement Provide)
according to my logs it appear to happen after counting the records... here is a brief example of the code:
TMyQuery.SQL := 'SQL Statement'
while not TMyQuery1.EOF do
begin
TMyQuery1.SQL := 'SQL Statement'
if TMyQuery1.RecordCount > 0 then
DoSomenthing
end;
i know the error is very clear, but i do not understand why its happening...
Can you guys give me any sugestions?
Thank you,
Vladimir