Can someone please tell me why I don't get to "Point A" below?
with qryFileOne do
begin
qryFileOneDisablecontrols;
qryFileOne.First; // Go to the first record
while not qryFileOne.Eof do
begin
with qryFileTwodo
begin
Active := True;
qryFile Two.Disablecontrols;
qryFileTwo.First;
while not qryFileTwo.Eof do
begin
Point A
I don't get here to do other stuff because this
routine ignores the "Eof" above, even though
there ARE records, and leaps directly to point "B"
below.
qryFileTwo.next;
end;
end;
if qryFileTwo.UpdatesPending then // Point B
qryFileTwo.ApplyUpdates;
qryFileTwo.enablecontrols;
qryFileOne.next;
end;
qryFileOne.GotoBookmark(GLBookMark);
qryFileOne.FreeBookMark(GLBookMark);
qryFileOne.enablecontrols;
if qryFileOne.UpdatesPending then
qryFileOne.ApplyUpdates;
end;
with qryFileOne do
begin
qryFileOneDisablecontrols;
qryFileOne.First; // Go to the first record
while not qryFileOne.Eof do
begin
with qryFileTwodo
begin
Active := True;
qryFile Two.Disablecontrols;
qryFileTwo.First;
while not qryFileTwo.Eof do
begin
Point A
I don't get here to do other stuff because this
routine ignores the "Eof" above, even though
there ARE records, and leaps directly to point "B"
below.
qryFileTwo.next;
end;
end;
if qryFileTwo.UpdatesPending then // Point B
qryFileTwo.ApplyUpdates;
qryFileTwo.enablecontrols;
qryFileOne.next;
end;
qryFileOne.GotoBookmark(GLBookMark);
qryFileOne.FreeBookMark(GLBookMark);
qryFileOne.enablecontrols;
if qryFileOne.UpdatesPending then
qryFileOne.ApplyUpdates;
end;