need to get time as time not date...
Dim MyConnection As System.Data.Odbc.OdbcConnection
Dim MyDataTable As New DataTable
Dim MyDataAdaptor As System.Data.Odbc.OdbcDataAdapter
Dim strMyConnection, strSavedFolder, strFilename As String
strSavedFolder = "c:\inetpub\ strFilename = "test.csv"
strMyConnection = "Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=" & strSavedFolder & ";"
MyConnection = New Odbc.OdbcConnection(strMyConnection)
MyDataAdaptor = New System.data.Odbc.OdbcDataAdapter("select * from [" + strFilename + "]", MyConnection)
MyDataAdaptor.Fill(MyDataTable)
DataGrid1.DataSource = MyDataTable
okay the code works great ... except for on little prob.
one of my fields is a time field. It's showing up on the datagrid as a date...
How do I set the conversion processes.
In access I would use an Import Spec to define my fields. How is this done in vb?
tia
jeff
Dim MyConnection As System.Data.Odbc.OdbcConnection
Dim MyDataTable As New DataTable
Dim MyDataAdaptor As System.Data.Odbc.OdbcDataAdapter
Dim strMyConnection, strSavedFolder, strFilename As String
strSavedFolder = "c:\inetpub\ strFilename = "test.csv"
strMyConnection = "Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=" & strSavedFolder & ";"
MyConnection = New Odbc.OdbcConnection(strMyConnection)
MyDataAdaptor = New System.data.Odbc.OdbcDataAdapter("select * from [" + strFilename + "]", MyConnection)
MyDataAdaptor.Fill(MyDataTable)
DataGrid1.DataSource = MyDataTable
okay the code works great ... except for on little prob.
one of my fields is a time field. It's showing up on the datagrid as a date...
How do I set the conversion processes.
In access I would use an Import Spec to define my fields. How is this done in vb?
tia
jeff