TADO Query and excel.
I have one column in excel containing:
Hubba
1234
qry:= TADOQuery.Create(nil);
qry.ConnectionString:= 'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=' + ExtractFilePath(Paramstr(0)) + '\Book1.xls'+ ';Extended Properties=Excel 8.0;Persist Security Info=False';
qry.SQL.Text:= 'select * from [mysheet$] ;
qry.Open;
while not qry.Eof do
begin
ShowMessage(qry.FieldByName('myfield').AsString);
it shows Hubba for the first record. But every record that contains numeric becomes empty.
How can i correct this?
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.