Click here to Skip to main content
15,910,787 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: OpenfileDialogBox file type change event handler Pin
Tom Deketelaere27-Apr-09 5:03
professionalTom Deketelaere27-Apr-09 5:03 
QuestionRefresh SQL 2000 (VB.NET) Pin
hoangsamac26-Apr-09 23:15
hoangsamac26-Apr-09 23:15 
AnswerRe: Refresh SQL 2000 (VB.NET) Pin
Christian Graus26-Apr-09 23:22
protectorChristian Graus26-Apr-09 23:22 
GeneralRe: Refresh SQL 2000 (VB.NET) Pin
hoangsamac26-Apr-09 23:30
hoangsamac26-Apr-09 23:30 
GeneralRe: Refresh SQL 2000 (VB.NET) Pin
Christian Graus26-Apr-09 23:52
protectorChristian Graus26-Apr-09 23:52 
GeneralRe: Refresh SQL 2000 (VB.NET) Pin
Jon_Boy27-Apr-09 3:21
Jon_Boy27-Apr-09 3:21 
GeneralRe: Refresh SQL 2000 (VB.NET) Pin
Christian Graus27-Apr-09 9:54
protectorChristian Graus27-Apr-09 9:54 
Questionaccess databse into datagridview Pin
rajulama26-Apr-09 22:30
rajulama26-Apr-09 22:30 
Hello everyone,
I just wonder what's wrong with my code. Actually I want to use openfiledialog to locate an access database file and then display it in datagridview. I used following connection string:
Dim sConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties=;Data Source=" & fi.DirectoryName

and following to call the table
Dim objCmdSelect As New OleDbCommand("select * from table1" & fi.Name, objConn)

But I get the famous error: "the microsoft jet database engine cannot open the file. it is already opened exclusively by another user or you need permission to view its data."

But neither by database is open nor its password protected.

Please help me resolving this problem
AnswerRe: access databse into datagridview Pin
Christian Graus26-Apr-09 22:45
protectorChristian Graus26-Apr-09 22:45 
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 
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 

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.