Click here to Skip to main content
15,899,314 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
rajulama wrote:
Dim sConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties=;Data Source=" & fi.DirectoryName


The names used in your code, you're trying to open a directory as a database. You have to give it the path to the .MDB file, not just it's parent directory.


rajulama wrote:
Dim objCmdSelect As New OleDbCommand("select * from table1" & fi.Name, objConn)


On top of that, your SQL query to get the data in table1 (if it even exists in that database) is wrong. You appending the filename to the end of the SQL SELECT statement, which won't work. The filename goes in the Data Source if your connection string, not the SELECT statement.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




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 
AnswerRe: e-mail textbox validation in vb.net Pin
Dave Kreskowiak27-Apr-09 2:08
mveDave Kreskowiak27-Apr-09 2:08 
Questionvisual basic dot net Pin
anandkumarrs626-Apr-09 21:04
anandkumarrs626-Apr-09 21:04 
AnswerRe: visual basic dot net Pin
Christian Graus26-Apr-09 21:10
protectorChristian Graus26-Apr-09 21:10 
GeneralRe: visual basic dot net Pin
Thomas Krojer30-Apr-09 1:22
Thomas Krojer30-Apr-09 1:22 
QuestionXMLDocument loop in textboxes with same Attribute name. [modified] Pin
elroy7226-Apr-09 9:37
elroy7226-Apr-09 9:37 
AnswerRe: XMLDocument loop in textboxes with same Attribute name. Pin
Christian Graus26-Apr-09 13:14
protectorChristian Graus26-Apr-09 13:14 
GeneralRe: XMLDocument loop in textboxes with same Attribute name. Pin
elroy7226-Apr-09 13:50
elroy7226-Apr-09 13:50 
GeneralRe: XMLDocument loop in textboxes with same Attribute name. Pin
Christian Graus26-Apr-09 14:06
protectorChristian Graus26-Apr-09 14:06 
Question[Message Deleted] Pin
julez12326-Apr-09 4:20
julez12326-Apr-09 4:20 
AnswerRe: HELP!!! Pin
Dave Kreskowiak26-Apr-09 10:53
mveDave Kreskowiak26-Apr-09 10:53 

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.