Can someone please tell me why the following code
txtPath := GetCurrentDir + 'DataPoints.txt';
ADODataSet1.ConnectionString := 'Provider=Microsoft.Jet.OLEDB.4.0;' +
'Data Source=' + txtPath + ';' +
ADODataSet1.CommandText := 'SELECT * FROM ' + txtPath;
complains that the path is invalid? The text file is correctly named and exists where txtPath reports it to be. It is a simple comma-delimited file with x/y coordinates for a graph, e.g. y=x squared:
I've just about exhausted my limited knowledge of Delphi 7. Many thanks.