crystalReporterNew
Programmer
Hi,
I am trying to set up a DSN for Microsoft text driver. If I write the following code, I get the error that DSN entry Failed:
intret = SQLConfigDataSource(0&, ODBC_ADD_DSN, "Microsoft Text Driver(*.txt,*.csv)", "DSN=AppliedEDSN"
If intret Then
MessageBox.Show("DSN Added"
Else
MessageBox.Show("DSN Entry Failed"
End If
HOwever if I replace the driver with SQL Driver or with MySQL ODBC 3.51 Driver , it adds the DSN .Can someone tell me whats wrong with the text driver? Actually the code doent work for Microsoft Access Driver(*.mdb) too
Please help
Thanks
I am trying to set up a DSN for Microsoft text driver. If I write the following code, I get the error that DSN entry Failed:
intret = SQLConfigDataSource(0&, ODBC_ADD_DSN, "Microsoft Text Driver(*.txt,*.csv)", "DSN=AppliedEDSN"
If intret Then
MessageBox.Show("DSN Added"
Else
MessageBox.Show("DSN Entry Failed"
End If
HOwever if I replace the driver with SQL Driver or with MySQL ODBC 3.51 Driver , it adds the DSN .Can someone tell me whats wrong with the text driver? Actually the code doent work for Microsoft Access Driver(*.mdb) too
Please help
Thanks