Click here to Skip to main content
15,897,273 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Returning a filename from command prompt. Pin
Mycroft Holmes31-Oct-07 23:21
professionalMycroft Holmes31-Oct-07 23:21 
GeneralRe: Returning a filename from command prompt. Pin
Dave Kreskowiak1-Nov-07 1:45
mveDave Kreskowiak1-Nov-07 1:45 
QuestionHow pass an event to a sub Pin
Narenge31-Oct-07 3:37
Narenge31-Oct-07 3:37 
AnswerRe: How pass an event to a sub Pin
svanwass31-Oct-07 5:13
svanwass31-Oct-07 5:13 
AnswerRe: How pass an event to a sub Pin
AliAmjad31-Oct-07 5:13
AliAmjad31-Oct-07 5:13 
AnswerRe: How pass an event to a sub Pin
Dave Kreskowiak31-Oct-07 6:32
mveDave Kreskowiak31-Oct-07 6:32 
AnswerRe: How pass an event to a sub Pin
Narenge31-Oct-07 12:25
Narenge31-Oct-07 12:25 
Questionconnecting an Access database to visual basic.net 2005 Pin
Ian Wells31-Oct-07 2:21
Ian Wells31-Oct-07 2:21 
I'm very new to vb.net 2005


Im now the next step of learning and want to connect a Microsort Access database to visual basic.net 2005.

I have tryed to follow an example in Microsoft Visual basic 2005 Reloaded book by Richard A. Johnson. But i'm not getting the same results as he's book?

I designed a database in microsoft access 2007, and saved it in formats 2007 & 2003. (I have tried both formats in tying to connect the database to VB.net 2005).

I connected the database using the 'add new Date Source' in the Data Source window in Visual Basic.net 2005. In the configuration wizard i selected Database, then i select 'new Connection', chose ' Microsoft Access Database File (OLE DB)' as the data source, then added my database. Tested the connection and then clicked 'next'. I saved a copy of the database, selected the database object i wanted in my dataset. I know have a datasource in Vb. I can view all the table and preview the data in the tables......all looking good.

I then click on the datasource and select 'Details', then drag the datasource over onto my vbform. All the fields are displayed ok. I also have a dataset, a bindingSource, a tableAdapter and a BindingNavigator at the bottom on my vbform.


The problem I have, is when I run the program, I can not display the data in the tables (fields)they are empty.

What part did I do wrong and how can I display the data in the database and display it in the vbForm?

Any help will be much appreciated.

Ian Wells

Ian Wells irwells@hotmail.com
AnswerRe: connecting an Access database to visual basic.net 2005 Pin
svanwass31-Oct-07 5:30
svanwass31-Oct-07 5:30 
Questionneed help with vb.net and active directory. Pin
kingpin200531-Oct-07 2:17
kingpin200531-Oct-07 2:17 
AnswerRe: need help with vb.net and active directory. Pin
Dave Kreskowiak31-Oct-07 6:13
mveDave Kreskowiak31-Oct-07 6:13 
GeneralRe: need help with vb.net and active directory. Pin
kingpin200531-Oct-07 21:53
kingpin200531-Oct-07 21:53 
QuestionArray - Structure problem Pin
Benny_Lava31-Oct-07 0:38
Benny_Lava31-Oct-07 0:38 
AnswerRe: Array - Structure problem Pin
pmarfleet31-Oct-07 3:33
pmarfleet31-Oct-07 3:33 
AnswerRe: Array - Structure problem Pin
Dave Kreskowiak31-Oct-07 6:07
mveDave Kreskowiak31-Oct-07 6:07 
QuestionPath to Installed Application Pin
SekharOne30-Oct-07 23:41
SekharOne30-Oct-07 23:41 
AnswerRe: Path to Installed Application Pin
Dave Kreskowiak31-Oct-07 6:05
mveDave Kreskowiak31-Oct-07 6:05 
GeneralRe: Path to Installed Application Pin
SekharOne1-Nov-07 0:39
SekharOne1-Nov-07 0:39 
QuestionKey Handling Pin
fazeepk30-Oct-07 23:00
fazeepk30-Oct-07 23:00 
AnswerRe: Key Handling Pin
Salman Sheikh30-Oct-07 23:35
Salman Sheikh30-Oct-07 23:35 
QuestionData Binding Pin
ejaz_pk30-Oct-07 22:12
ejaz_pk30-Oct-07 22:12 
AnswerRe: Data Binding Pin
Dave Kreskowiak31-Oct-07 5:21
mveDave Kreskowiak31-Oct-07 5:21 
GeneralRe: Data Binding Pin
ejaz_pk31-Oct-07 21:08
ejaz_pk31-Oct-07 21:08 
GeneralRe: Data Binding Pin
John_Adams1-Nov-07 1:16
John_Adams1-Nov-07 1:16 
GeneralRe: Data Binding Pin
ejaz_pk1-Nov-07 2:05
ejaz_pk1-Nov-07 2:05 

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.