Click here to Skip to main content
15,917,808 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: access databse into datagridview Pin
rajulama26-Apr-09 22:54
rajulama26-Apr-09 22:54 
GeneralRe: access databse into datagridview Pin
Christian Graus26-Apr-09 22:59
protectorChristian Graus26-Apr-09 22:59 
GeneralRe: access databse into datagridview Pin
rajulama26-Apr-09 23:02
rajulama26-Apr-09 23:02 
GeneralRe: access databse into datagridview Pin
Christian Graus26-Apr-09 23:07
protectorChristian Graus26-Apr-09 23:07 
GeneralRe: access databse into datagridview Pin
rajulama26-Apr-09 23:10
rajulama26-Apr-09 23:10 
GeneralRe: access databse into datagridview Pin
Christian Graus26-Apr-09 23:12
protectorChristian Graus26-Apr-09 23:12 
GeneralRe: access databse into datagridview Pin
rajulama26-Apr-09 23:17
rajulama26-Apr-09 23:17 
GeneralRe: access databse into datagridview Pin
Christian Graus26-Apr-09 23:21
protectorChristian Graus26-Apr-09 23:21 
*sigh*

Dim fi As New FileInfo(OpenFileDialog1.FileName)
Dim sConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties=;Data Source=" & fi.DirectoryName
Dim objConn As New OleDbConnection(sConnectionString)
Dim objDataSet As DataSet = New DataSet()
objConn.Open()
Dim objCmdSelect As New OleDbCommand("select * from [Joint Restraint Assignments]" & fi.Name, objConn)

So, you take the filename from the openfiledialog and use the FileInfo object to extract the directory name and the filename. Instead, you can use the methods I gave you, to get those values from the filename property of the file dialog, directly. I am at a loss how you think what I have been saying takes away from your using a dynamic filename. If the filename was fixed, you'd type in the values in your code, not use methods to work them out, surely ?

Christian Graus

Driven to the arms of OSX by Vista.

"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

GeneralRe: access databse into datagridview Pin
rajulama26-Apr-09 23:30
rajulama26-Apr-09 23:30 
GeneralRe: access databse into datagridview Pin
rajulama26-Apr-09 23:51
rajulama26-Apr-09 23:51 
GeneralRe: access databse into datagridview Pin
Christian Graus26-Apr-09 23:53
protectorChristian Graus26-Apr-09 23:53 
GeneralRe: access databse into datagridview Pin
rajulama27-Apr-09 0:02
rajulama27-Apr-09 0:02 
GeneralRe: access databse into datagridview Pin
rajulama27-Apr-09 0:10
rajulama27-Apr-09 0:10 
GeneralRe: access databse into datagridview Pin
rajulama27-Apr-09 0:13
rajulama27-Apr-09 0:13 
AnswerRe: access databse into datagridview Pin
Eddy Vluggen26-Apr-09 22:54
professionalEddy Vluggen26-Apr-09 22:54 
GeneralRe: access databse into datagridview Pin
rajulama26-Apr-09 22:55
rajulama26-Apr-09 22:55 
AnswerRe: access databse into datagridview Pin
Luc Pattyn27-Apr-09 1:04
sitebuilderLuc Pattyn27-Apr-09 1:04 
AnswerRe: access databse into datagridview Pin
Dave Kreskowiak27-Apr-09 2:12
mveDave Kreskowiak27-Apr-09 2:12 
QuestionCreate an exe without need of setup file and packaging and deployment advice Pin
jinxster26-Apr-09 22:30
professionaljinxster26-Apr-09 22:30 
AnswerRe: Create an exe without need of setup file and packaging and deployment advice Pin
Christian Graus26-Apr-09 22:46
protectorChristian Graus26-Apr-09 22:46 
GeneralRe: Create an exe without need of setup file and packaging and deployment advice Pin
jinxster26-Apr-09 23:04
professionaljinxster26-Apr-09 23:04 
GeneralRe: Create an exe without need of setup file and packaging and deployment advice Pin
Christian Graus26-Apr-09 23:09
protectorChristian Graus26-Apr-09 23:09 
AnswerRe: Create an exe without need of setup file and packaging and deployment advice Pin
Ageesh29-Apr-09 1:44
Ageesh29-Apr-09 1:44 
Questione-mail textbox validation in vb.net Pin
p_m_kanthi26-Apr-09 21:13
p_m_kanthi26-Apr-09 21:13 
AnswerRe: e-mail textbox validation in vb.net Pin
Christian Graus26-Apr-09 21:27
protectorChristian Graus26-Apr-09 21:27 

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.