Skip to content
Advertisement

VBA error while querying a Tab limited Text file with headers – “no value given for one or more required parameters”

My Text file is Tab delimited and does have the header Field "Datum". I intend to read the data between two given timestamps (along rows) into an Excel File and figured using the ADO and SQL approach would be the best way to go about it, since this would avoid use of arrays and looping.

My Text file looks like:

enter image description here

Advertisement

Answer

  1. You need to specify FMT=TabDelimited in the Extended Properties part of the ConnectionString

  2. You need to provide a schema.ini file, as answered here

It’s unfortunate that the error message doesn’t relate in any way to the problem you are having, but if you fix the two points I make, “it should all just work”.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement