Click here to Skip to main content
15,896,912 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Not Understanding Delegates (User Error) Pin
Eddy Vluggen21-Aug-12 4:50
professionalEddy Vluggen21-Aug-12 4:50 
QuestionMultiple checkbox in Excel file Pin
oanaa1119-Aug-12 21:20
oanaa1119-Aug-12 21:20 
AnswerRe: Multiple checkbox in Excel file Pin
Sonhospa19-Aug-12 23:37
Sonhospa19-Aug-12 23:37 
AnswerRe: Multiple checkbox in Excel file Pin
Clark Kent12320-Aug-12 3:26
professionalClark Kent12320-Aug-12 3:26 
AnswerStore Keywords in Excel doc Pin
David Mujica20-Aug-12 4:02
David Mujica20-Aug-12 4:02 
AnswerCode snipet Pin
David Mujica20-Aug-12 4:30
David Mujica20-Aug-12 4:30 
GeneralRe: Code snipet Pin
oanaa1120-Aug-12 20:10
oanaa1120-Aug-12 20:10 
QuestionHow to code the next button Pin
garyu8717-Aug-12 22:09
garyu8717-Aug-12 22:09 
I have multiple tables to call. So, I need to have a next button that call's the next row data.
Here's my coding:

VB
Try
            cmd.Connection = connection
            cmd.CommandText = "SELECT tblExpenses.Date, tblExpenses.Allowance, tblExpenses.Total, tblExpenses.Wallet,"
            cmd.CommandText += "tblFoodAndBeverage.Breakfast, tblFoodAndBeverage.Lunch, tblFoodAndBeverage.Dinner,"
            cmd.CommandText += "tblFoodAndBeverage.Supper, tblFoodAndBeverage.Snack, tblFoodAndBeverage.Beverage,"
            cmd.CommandText += "tblFoodAndBeverage.Grocerries, tblFoodAndBeverage.Sub_Total, tblEntertainment.Video_Rental,"
            cmd.CommandText += "tblEntertainment.Cinema, tblEntertainment.Concert, tblEntertainment.Sport,"
            cmd.CommandText += "tblEntertainment.Games, tblEntertainment.Club_Bar_Disco, tblEntertainment.Others,"
            cmd.CommandText += "tblEntertainment.Sub_Total FROM tblExpenses, tblFoodAndBeverage, tblEntertainment WHERE tblExpenses.Food_And_Beverage=tblFoodAndBeverage.Food_And_BeverageID AND tblExpenses.Entertainment=tblEntertainment.EntertainmentID"

            dr = cmd.ExecuteReader
            If dr.HasRows Then
                While dr.Read

                    DateTimePicker1.Value = dr.Item(0)
                    txtAllowance.Text = dr.Item(1)
                    txtTotalUsage.Text = dr.Item(2)
                    txtWalletCash.Text = dr.Item(3)

                    txtBreakFeast.Text = dr.Item(4)
                    txtLunch.Text = dr.Item(5)
                    txtDinner.Text = dr.Item(6)
                    txtSupper.Text = dr.Item(7)
                    txtSnack.Text = dr.Item(8)
                    txtBeverage.Text = dr.Item(9)
                    txtGroceries.Text = dr.Item(10)
                    txtSubFnB.Text = dr.Item(11)

                    txtVideo.Text = dr.Item(12)
                    txtCinema.Text = dr.Item(13)
                    txtConcert.Text = dr.Item(14)
                    txtSport.Text = dr.Item(15)
                    txtGames.Text = dr.Item(16)
                    txtClubBarDisco.Text = dr.Item(17)
                    txtEntertainmentOthers.Text = dr.Item(18)
                    txtSubEntertainment.Text = dr.Item(19)
                End While
            End If
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try

AnswerRe: How to code the next button Pin
Eddy Vluggen18-Aug-12 2:05
professionalEddy Vluggen18-Aug-12 2:05 
GeneralRe: How to code the next button Pin
garyu8718-Aug-12 2:38
garyu8718-Aug-12 2:38 
GeneralRe: How to code the next button Pin
Eddy Vluggen18-Aug-12 5:49
professionalEddy Vluggen18-Aug-12 5:49 
GeneralRe: How to code the next button Pin
garyu8718-Aug-12 20:01
garyu8718-Aug-12 20:01 
GeneralRe: How to code the next button Pin
Eddy Vluggen18-Aug-12 23:21
professionalEddy Vluggen18-Aug-12 23:21 
Questionvb interface wih HP impedance tester Pin
seow22716-Aug-12 21:55
seow22716-Aug-12 21:55 
AnswerRe: vb interface wih HP impedance tester Pin
Eddy Vluggen17-Aug-12 3:27
professionalEddy Vluggen17-Aug-12 3:27 
AnswerRe: vb interface wih HP impedance tester Pin
Dave Kreskowiak17-Aug-12 3:29
mveDave Kreskowiak17-Aug-12 3:29 
QuestionPrintPreviewControl causes exception Pin
kmoorevs16-Aug-12 3:06
kmoorevs16-Aug-12 3:06 
AnswerRe: PrintPreviewControl causes exception Pin
Kenneth Haugland18-Aug-12 13:00
mvaKenneth Haugland18-Aug-12 13:00 
QuestionManually registering .tlb files Pin
Karthik Chintala16-Aug-12 1:21
Karthik Chintala16-Aug-12 1:21 
AnswerRe: Manually registering .tlb files Pin
Shameel16-Aug-12 1:56
professionalShameel16-Aug-12 1:56 
GeneralRe: Manually registering .tlb files Pin
Karthik Chintala16-Aug-12 2:00
Karthik Chintala16-Aug-12 2:00 
QuestionRe: Manually registering .tlb files Pin
Shameel16-Aug-12 2:01
professionalShameel16-Aug-12 2:01 
AnswerRe: Manually registering .tlb files Pin
Karthik Chintala16-Aug-12 2:08
Karthik Chintala16-Aug-12 2:08 
GeneralRe: Manually registering .tlb files Pin
Dave Kreskowiak16-Aug-12 2:35
mveDave Kreskowiak16-Aug-12 2:35 
GeneralRe: Manually registering .tlb files Pin
Karthik Chintala16-Aug-12 2:40
Karthik Chintala16-Aug-12 2:40 

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.