Fill listbox from query??
I have two forms in FR, one with a listbox and a TQuery, the other is the report. How do I fill the listbox from the query?? I want the user to select an option from the listbox that I will use in the report.
I tried this code in the page1 OnActivate :
begin
tblPrograms.Open;
while not tblPrograms.eof do begin
lbPrograms.Add(tblPrograms);
tblPrograms.next;
end;
end
The list shows up emtpy.
- Gary
I tried this code in the page1 OnActivate :
begin
tblPrograms.Open;
while not tblPrograms.eof do begin
lbPrograms.Add(tblPrograms);
tblPrograms.next;
end;
end
The list shows up emtpy.
- Gary
Comments
lbPrograms.Add([DialogForm.tblPrograms."name"]);