Click here to Skip to main content
15,925,895 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: ListBox Pin
The ANZAC13-Jan-08 18:02
The ANZAC13-Jan-08 18:02 
GeneralTabControl Back color Pin
manisghouri13-Jan-08 5:15
manisghouri13-Jan-08 5:15 
AnswerRe: TabControl Back color Pin
Ajay.k_Singh13-Jan-08 22:57
Ajay.k_Singh13-Jan-08 22:57 
GeneralMaking an Setup wich include an MS Access DB and install it on another PC. Pin
Erich Rebel13-Jan-08 4:47
Erich Rebel13-Jan-08 4:47 
GeneralRe: Making an Setup wich include an MS Access DB and install it on another PC. Pin
Vimalsoft(Pty) Ltd13-Jan-08 8:51
professionalVimalsoft(Pty) Ltd13-Jan-08 8:51 
GeneralRe: Making an Setup wich include an MS Access DB and install it on another PC. Pin
Erich Rebel14-Jan-08 4:11
Erich Rebel14-Jan-08 4:11 
GeneralRe: Making an Setup wich include an MS Access DB and install it on another PC. Pin
Dave Kreskowiak14-Jan-08 4:47
mveDave Kreskowiak14-Jan-08 4:47 
GeneralRe: Making an Setup wich include an MS Access DB and install it on another PC. Pin
Erich Rebel14-Jan-08 5:26
Erich Rebel14-Jan-08 5:26 
I don't understand what you mean by 'It appears to be bombing out making a connection to the database,'.
That kind of English is an bit to difficult for me.
I'm dutch.

Maybe you got an bit of code to show me what you mean.

My App.Config looks like this:

<
connectionStrings>
<add name="Access_DB_2.My.MySettings.TestDatabaseConnectionString"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\Data\TestDatabase.mdb;Persist Security Info=True"
providerName="System.Data.OleDb" />
</connectionStrings>
>


I also thought that would be an problem so i changed my VB code on the load event to this:

<br />
  Dim oDa As New OleDb.OleDbDataAdapter("SELECT * FROM tNamen", "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\Data\TestDatabase.mdb;Persist Security Info=True")<br />
    Dim oDt As New DataTable<br />
    Dim oBs As New BindingSource<br />
<br />
    oDa.Fill(oDt)<br />
    oBs.DataSource = oDt<br />
<br />
    Try<br />
      DataGridView1.DataSource = oBs<br />
<br />
    Catch ex As OleDbException<br />
      MsgBox(ex.Message)<br />
    Catch ex As Exception<br />
      MsgBox(ex.Message)<br />
    Finally<br />
      oDa = Nothing<br />
    End Try<br />


But that was not an solution.

The directory my Program is installed in is: c:\program files\EwR Development\Access DB 2.
And the database is in: c:\program files\EwR Development\Access DB 2\data
The images are located in: c:\program files\EwR Development\Access DB 2\Images

If you need my project I'll send it to you in an zip/rar file.

If you need de setup i can send it to you to. Also in an zip or rar file.
GeneralRe: Making an Setup wich include an MS Access DB and install it on another PC. Pin
Dave Kreskowiak14-Jan-08 5:49
mveDave Kreskowiak14-Jan-08 5:49 
GeneralRe: Making an Setup wich include an MS Access DB and install it on another PC. Pin
Erich Rebel16-Jan-08 4:06
Erich Rebel16-Jan-08 4:06 
GeneralMultithreading Debugging Pin
MikeMarq12-Jan-08 18:47
MikeMarq12-Jan-08 18:47 
GeneralRe: Multithreading Debugging Pin
Dave Kreskowiak13-Jan-08 7:32
mveDave Kreskowiak13-Jan-08 7:32 
GeneralData Share Pin
roger689712-Jan-08 10:29
roger689712-Jan-08 10:29 
GeneralRe: Data Share Pin
pmarfleet12-Jan-08 11:26
pmarfleet12-Jan-08 11:26 
GeneralRe: Data Share Pin
Paul Conrad12-Jan-08 16:02
professionalPaul Conrad12-Jan-08 16:02 
QuestionMultiple Forms Pin
dexter970312-Jan-08 4:44
dexter970312-Jan-08 4:44 
GeneralRe: Multiple Forms Pin
Colin Angus Mackay12-Jan-08 5:06
Colin Angus Mackay12-Jan-08 5:06 
GeneralRe: Multiple Forms Pin
Paul Conrad12-Jan-08 9:28
professionalPaul Conrad12-Jan-08 9:28 
Questionhow to display currency in india format like 11,12,345? Pin
sathyan_829412-Jan-08 3:58
sathyan_829412-Jan-08 3:58 
AnswerRe: how to display currency in india format like 11,12,345? Pin
pmarfleet12-Jan-08 7:44
pmarfleet12-Jan-08 7:44 
QuestionArrayList Pin
dexter970312-Jan-08 3:09
dexter970312-Jan-08 3:09 
GeneralRe: ArrayList Pin
Luc Pattyn12-Jan-08 4:04
sitebuilderLuc Pattyn12-Jan-08 4:04 
GeneralAbout Getting table names from MS Access DB Pin
Mushtaque Nizamani12-Jan-08 1:50
Mushtaque Nizamani12-Jan-08 1:50 
QuestionButtons Pin
roger689712-Jan-08 0:51
roger689712-Jan-08 0:51 
GeneralRe: Buttons Pin
Luc Pattyn12-Jan-08 1:00
sitebuilderLuc Pattyn12-Jan-08 1:00 

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.