Click here to Skip to main content
15,894,907 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: mpeg file encryption and compression...urgent!!!! Pin
Justin Perez24-Jan-08 5:22
Justin Perez24-Jan-08 5:22 
GeneralRe: mpeg file encryption and compression...urgent!!!! Pin
darkelv24-Jan-08 18:54
darkelv24-Jan-08 18:54 
GeneralRe: mpeg file encryption and compression...urgent!!!! Pin
Paul Conrad25-Jan-08 7:25
professionalPaul Conrad25-Jan-08 7:25 
GeneralRe: mpeg file encryption and compression...urgent!!!! Pin
Paul Conrad24-Jan-08 5:01
professionalPaul Conrad24-Jan-08 5:01 
GeneralConvert FileOpen in .net Pin
soniasan23-Jan-08 23:45
soniasan23-Jan-08 23:45 
GeneralRe: Convert FileOpen in .net Pin
Paul Conrad24-Jan-08 6:56
professionalPaul Conrad24-Jan-08 6:56 
GeneralRe: Convert FileOpen in .net Pin
Tom John24-Jan-08 7:04
Tom John24-Jan-08 7:04 
QuestionHow to read text / csv file by ado.net using vb.net 2005 [modified] Pin
ejaz_pk23-Jan-08 22:42
ejaz_pk23-Jan-08 22:42 
How can I read a text or csv file by ado.net.The following code is working fine with vb 6.0 but when I try to use the same code with vb.net 2005 it gives me an error at <b>Rcdfile.open </b>line.

The following error I am getting.

[Microsoft][ODBC Text Driver]'6.0' is not a valid name.Make sure that it does not include invalid character or punctuation and that it is not too long.


Here is the code which I am using to open the file.

Dim Conn As New ADODB.Connection
Dim RcdFile As New ADODB.Recordset

Conn.Open("Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=" & mPath & " ; ";Extensions=asc,csv,tab,txt;HDR=NO;Persist Security Info=False")

RcdFile.Open("Select * From " &amp; Me.OpenFileDialog.FileName &amp; "", Conn, ADODB.CursorTypeEnum.adOpenStatic, ADODB.LockTypeEnum.adLockReadOnly)


Any idea where I am wrong.

THanks in advance

<div class="ForumMod">modified on Thursday, January 24, 2008 9:39:36 AM</div>
AnswerRe: How to read text / csv file by ado.net using vb.net 2005 Pin
ejaz_pk25-Jan-08 1:21
ejaz_pk25-Jan-08 1:21 
QuestionWhat is Wrong with the Following Function Pin
Vimalsoft(Pty) Ltd23-Jan-08 21:02
professionalVimalsoft(Pty) Ltd23-Jan-08 21:02 
AnswerRe: What is Wrong with the Following Function Pin
Rupesh Kumar Swami23-Jan-08 21:33
Rupesh Kumar Swami23-Jan-08 21:33 
GeneralRe: What is Wrong with the Following Function Pin
Vimalsoft(Pty) Ltd23-Jan-08 22:50
professionalVimalsoft(Pty) Ltd23-Jan-08 22:50 
AnswerRe: What is Wrong with the Following Function Pin
Steven J Jowett23-Jan-08 22:11
Steven J Jowett23-Jan-08 22:11 
GeneralRe: What is Wrong with the Following Function Pin
Vimalsoft(Pty) Ltd23-Jan-08 23:11
professionalVimalsoft(Pty) Ltd23-Jan-08 23:11 
GeneralUserControl Not part of form Pin
plural23-Jan-08 20:25
plural23-Jan-08 20:25 
GeneralRe: UserControl Not part of form Pin
plural23-Jan-08 20:26
plural23-Jan-08 20:26 
Generaldrag and drop in two listbox Pin
sumit703423-Jan-08 19:12
sumit703423-Jan-08 19:12 
GeneralRe: drag and drop in two listbox Pin
C1AllenS25-Jan-08 0:17
C1AllenS25-Jan-08 0:17 
GeneralRe: drag and drop in two listbox Pin
sumit703422-Oct-08 22:48
sumit703422-Oct-08 22:48 
GeneralTo get focus on textbox Pin
sumit703423-Jan-08 18:07
sumit703423-Jan-08 18:07 
GeneralRe: To get focus on textbox Pin
Paul Conrad23-Jan-08 18:13
professionalPaul Conrad23-Jan-08 18:13 
GeneralRe: To get focus on textbox Pin
sumit703423-Jan-08 18:24
sumit703423-Jan-08 18:24 
GeneralRe: To get focus on textbox Pin
Paul Conrad23-Jan-08 18:42
professionalPaul Conrad23-Jan-08 18:42 
GeneralRe: To get focus on textbox Pin
sumit703423-Jan-08 18:57
sumit703423-Jan-08 18:57 
GeneralRe: To get focus on textbox Pin
Vimalsoft(Pty) Ltd24-Jan-08 1:57
professionalVimalsoft(Pty) Ltd24-Jan-08 1:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.