Click here to Skip to main content
15,891,248 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVisual Studio Expenses Project Pin
garyu8714-Aug-12 5:16
garyu8714-Aug-12 5:16 
AnswerRe: Visual Studio Expenses Project Pin
Eddy Vluggen15-Aug-12 1:21
professionalEddy Vluggen15-Aug-12 1:21 
GeneralRe: Visual Studio Expenses Project Pin
garyu8715-Aug-12 21:20
garyu8715-Aug-12 21:20 
GeneralRe: Visual Studio Expenses Project Pin
Eddy Vluggen15-Aug-12 22:05
professionalEddy Vluggen15-Aug-12 22:05 
GeneralRe: Visual Studio Expenses Project Pin
garyu8715-Aug-12 22:24
garyu8715-Aug-12 22:24 
GeneralRe: Visual Studio Expenses Project Pin
Eddy Vluggen15-Aug-12 22:31
professionalEddy Vluggen15-Aug-12 22:31 
GeneralRe: Visual Studio Expenses Project Pin
garyu8716-Aug-12 2:54
garyu8716-Aug-12 2:54 
AnswerRe: Visual Studio Expenses Project Pin
Eddy Vluggen16-Aug-12 3:05
professionalEddy Vluggen16-Aug-12 3:05 
garyu87 wrote:
I am having problem with the da.fill-with multiple tables(giving me error)

If you encounter an exception, then please, post the entire message. It helps in finding the cause of the problem.

In this case, it's probably caused by a malformed Sql-statement. Take a look at the concatenation;
VB
cmd.CommandText = "SELECT tblExpenses.Date, tblFoodAndBeverage.Breakfast, tblFoodAndBeverage.Lunch"
cmd.CommandText += "tblFoodAndBeverage.Dinner, tblFoodAndBeverage.Snack, tblFoodAndBeverage.Beverage"

That would result in the string below;
VB
"SELECT tblExpenses.Date, tblFoodAndBeverage.Breakfast, tblFoodAndBeverage.LunchtblFoodAndBeverage.Dinner, tblFoodAndBeverage.Snack, tblFoodAndBeverage.Beverage"

Can you see the problem? Those two items should be separated by a comma. I recommend putting the Sql-statement in a separate textfile, and to use File.ReadAllText to load it into the CommandText. That way you can write your Sql-statement in the Management Studio, and simply save it when you're done - and there's the benefit of not having to concatenate a lot if you save it in an external file. Third advantage is that you can update your Sql without a recompile Smile | :)
Bastard Programmer from Hell Suspicious | :suss:
if you can't read my code, try converting it here[^]

GeneralRe: Visual Studio Expenses Project Pin
garyu8716-Aug-12 3:48
garyu8716-Aug-12 3:48 
AnswerRe: Visual Studio Expenses Project Pin
Eddy Vluggen16-Aug-12 5:12
professionalEddy Vluggen16-Aug-12 5:12 
GeneralRe: Visual Studio Expenses Project Pin
garyu8716-Aug-12 5:36
garyu8716-Aug-12 5:36 
GeneralRe: Visual Studio Expenses Project Pin
Eddy Vluggen16-Aug-12 5:47
professionalEddy Vluggen16-Aug-12 5:47 
QuestionRun-time 430: class doesnot support automation or does not support expected interface Pin
Karthik Chintala12-Aug-12 23:35
Karthik Chintala12-Aug-12 23:35 
AnswerRe: Run-time 430: class doesnot support automation or does not support expected interface Pin
Eddy Vluggen12-Aug-12 23:47
professionalEddy Vluggen12-Aug-12 23:47 
GeneralRe: Run-time 430: class doesnot support automation or does not support expected interface Pin
Karthik Chintala12-Aug-12 23:51
Karthik Chintala12-Aug-12 23:51 
AnswerRe: Run-time 430: class doesnot support automation or does not support expected interface Pin
Eddy Vluggen13-Aug-12 0:06
professionalEddy Vluggen13-Aug-12 0:06 
GeneralRe: Run-time 430: class doesnot support automation or does not support expected interface Pin
Karthik Chintala13-Aug-12 0:14
Karthik Chintala13-Aug-12 0:14 
GeneralRe: Run-time 430: class doesnot support automation or does not support expected interface Pin
Eddy Vluggen13-Aug-12 0:28
professionalEddy Vluggen13-Aug-12 0:28 
GeneralRe: Run-time 430: class doesnot support automation or does not support expected interface Pin
Karthik Chintala13-Aug-12 0:34
Karthik Chintala13-Aug-12 0:34 
GeneralRe: Run-time 430: class doesnot support automation or does not support expected interface Pin
Eddy Vluggen13-Aug-12 1:24
professionalEddy Vluggen13-Aug-12 1:24 
GeneralRe: Run-time 430: class doesnot support automation or does not support expected interface Pin
Karthik Chintala13-Aug-12 1:29
Karthik Chintala13-Aug-12 1:29 
GeneralRe: Run-time 430: class doesnot support automation or does not support expected interface Pin
Eddy Vluggen13-Aug-12 1:39
professionalEddy Vluggen13-Aug-12 1:39 
GeneralRe: Run-time 430: class doesnot support automation or does not support expected interface Pin
Karthik Chintala13-Aug-12 0:41
Karthik Chintala13-Aug-12 0:41 
QuestionButton Click acting weird Pin
dtdmike9412-Aug-12 2:12
dtdmike9412-Aug-12 2:12 
AnswerRe: Button Click acting weird Pin
Eddy Vluggen12-Aug-12 3:37
professionalEddy Vluggen12-Aug-12 3:37 

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.