Click here to Skip to main content
16,007,443 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Problems with Designer Generated Code in VB 2005 Pin
Reveille28-Nov-07 14:23
Reveille28-Nov-07 14:23 
GeneralRe: Problems with Designer Generated Code in VB 2005 Pin
AAGTHosting29-Nov-07 13:13
AAGTHosting29-Nov-07 13:13 
QuestionCrystal Report "Logon Failed. Please Try Again." Pin
Reveille28-Nov-07 12:47
Reveille28-Nov-07 12:47 
AnswerRe: Crystal Report "Logon Failed. Please Try Again." Pin
Paul Conrad28-Nov-07 15:09
professionalPaul Conrad28-Nov-07 15:09 
GeneralRe: Crystal Report "Logon Failed. Please Try Again." Pin
Reveille28-Nov-07 15:33
Reveille28-Nov-07 15:33 
QuestionOpening and Closing Connections Pin
AAGTHosting28-Nov-07 11:52
AAGTHosting28-Nov-07 11:52 
AnswerRe: Opening and Closing Connections Pin
Naji El Kotob28-Nov-07 12:14
Naji El Kotob28-Nov-07 12:14 
QuestionUsing TableAdapters Pin
AAGTHosting28-Nov-07 11:10
AAGTHosting28-Nov-07 11:10 
I am writing a VB.net application. I learned using dataAdapters and the configuration wizard in Visual Basic 2003, but I am using VB 2005 to write my program. Being I am using 2005 I used the wizard to create a TableAdapter. Then I created a module to declare some variables in because I have multiple forms in the application.

Here is my problem.

After I declared the variables in the module I am not able to use .Fill in my forms to Fill the DataTable.

When I create a TableAdapter do I also have to create a DataTable?

Here is the variable declarations I am using in the module.

' declare variables<br />
    Dim dataSet As New DataSet1()<br />
    Dim hoursTableAdapter As New DataSet1TableAdapters.tbl_hoursTableAdapter()


Here is the code I am trying to use to access the TableAdapter (from within one fo the forms), but when I use it I get the blue squigly line under the code. The blue squigly line shows up under "Me.hoursTableAdapter" and "Me.DataSet".

Me.hoursTableAdapter.Fill(Me.DataSet.tbl_hours)

How do I access the TableAdapter?

I tried Importing the namespace from the table adapter as well. Here is the code I used to import the namespace. I put it before the class declaration.

Imports lessonProgram.DataSet1TableAdapters
AnswerRe: Using TableAdapters Pin
AAGTHosting28-Nov-07 11:53
AAGTHosting28-Nov-07 11:53 
QuestionWebBrowser & HTML Tables Problem in VB.NET Pin
conorod28-Nov-07 11:07
conorod28-Nov-07 11:07 
QuestionColorize text between two words Pin
The Mighty Atom28-Nov-07 9:48
The Mighty Atom28-Nov-07 9:48 
AnswerRe: Colorize text between two words Pin
cstrader23228-Nov-07 17:34
cstrader23228-Nov-07 17:34 
GeneralRe: Colorize text between two words Pin
The Mighty Atom29-Nov-07 10:10
The Mighty Atom29-Nov-07 10:10 
GeneralRe: Colorize text between two words Pin
PeterBiddlecombe29-Nov-07 22:09
PeterBiddlecombe29-Nov-07 22:09 
GeneralRe: Colorize text between two words Pin
The Mighty Atom30-Nov-07 2:08
The Mighty Atom30-Nov-07 2:08 
GeneralRe: Colorize text between two words Pin
PeterBiddlecombe30-Nov-07 4:55
PeterBiddlecombe30-Nov-07 4:55 
GeneralRe: Colorize text between two words Pin
The Mighty Atom30-Nov-07 5:33
The Mighty Atom30-Nov-07 5:33 
QuestionWorks but any known memory leak? Pin
nlarson1128-Nov-07 9:21
nlarson1128-Nov-07 9:21 
AnswerRe: Works but any known memory leak? Pin
Luc Pattyn28-Nov-07 9:28
sitebuilderLuc Pattyn28-Nov-07 9:28 
GeneralRe: Works but any known memory leak? Pin
nlarson1128-Nov-07 9:30
nlarson1128-Nov-07 9:30 
GeneralRe: Works but any known memory leak? Pin
Luc Pattyn28-Nov-07 9:55
sitebuilderLuc Pattyn28-Nov-07 9:55 
AnswerRe: Works but any known memory leak? Pin
Christian Graus28-Nov-07 9:30
protectorChristian Graus28-Nov-07 9:30 
GeneralRe: Works but any known memory leak? Pin
nlarson1128-Nov-07 9:35
nlarson1128-Nov-07 9:35 
GeneralRe: Works but any known memory leak? Pin
Luc Pattyn28-Nov-07 9:43
sitebuilderLuc Pattyn28-Nov-07 9:43 
AnswerRe: Works but any known memory leak? Pin
sgorozco28-Nov-07 10:30
sgorozco28-Nov-07 10:30 

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.