Click here to Skip to main content
15,888,340 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: VB code to disable save button after saving a form Pin
Dave Kreskowiak4-Apr-18 2:17
mveDave Kreskowiak4-Apr-18 2:17 
GeneralRe: VB code to disable save button after saving a form Pin
Ronnie Jimenez16-Apr-18 17:19
Ronnie Jimenez16-Apr-18 17:19 
QuestionHow can I disable a Save button or Print Buttton after saving a form in Visualbasic 6.0 Pin
Member 136918613-Apr-18 22:56
Member 136918613-Apr-18 22:56 
AnswerRe: How can I disable a Save button or Print Buttton after saving a form in Visualbasic 6.0 Pin
Chris Quinn4-Apr-18 0:22
Chris Quinn4-Apr-18 0:22 
GeneralRe: How can I disable a Save button or Print Buttton after saving a form in Visualbasic 6.0 Pin
Member 136918614-Apr-18 1:59
Member 136918614-Apr-18 1:59 
GeneralRe: How can I disable a Save button or Print Buttton after saving a form in Visualbasic 6.0 Pin
Dave Kreskowiak4-Apr-18 2:14
mveDave Kreskowiak4-Apr-18 2:14 
GeneralRe: How can I disable a Save button or Print Buttton after saving a form in Visualbasic 6.0 Pin
Chris Quinn4-Apr-18 2:37
Chris Quinn4-Apr-18 2:37 
QuestionHow to solve system.NullReferenceException Pin
Member 137549753-Apr-18 0:37
Member 137549753-Apr-18 0:37 
I am getting this exception for line 245:

VB
For i As Integer = 0 To srno.Length - 1
     'This is Line 245:
     Dim ins2 As String = "INSERT INTO purchase_bill_items VALUES('" & entry_no & "', '" & srno(i) & "', '" & item_name(i).ToString & "', '" & batch(i) & "', '" & exp(i) & "', '" & mrp(i) & "', '" & qty(i) & "', '" & unit(i) & "', '" & purchase_rate(i) & "', '" & discount(i) & "', '" & amount(i) & "')"
    cmd.CommandText = ins2
    cmd.ExecuteNonQuery()
    Dim ins3 As String = "INSERT INTO item_stock VALUES('" & entry_no & "', '" & batch(i) & "', '" & item_name(i).ToString & "', '" & exp(i) & "', '" & qty(i) & "', '" & mrp(i) & "', '" & qty(i) * mrp(i) & "')"
                        cmd.CommandText = ins3
                        cmd.ExecuteNonQuery()
                        MsgBox(item_name(i))
                    Next


Help please!
AnswerRe: How to solve system.NullReferenceException Pin
mo14923-Apr-18 0:59
mo14923-Apr-18 0:59 
AnswerRe: How to solve system.NullReferenceException Pin
Maciej Los3-Apr-18 1:05
mveMaciej Los3-Apr-18 1:05 
AnswerRe: How to solve system.NullReferenceException Pin
Member 83455994-Apr-18 4:46
Member 83455994-Apr-18 4:46 
QuestionUse Tabcontrol to switch beween control in Excel VBA form Pin
hmanhha30-Mar-18 17:28
hmanhha30-Mar-18 17:28 
AnswerRe: Use Tabcontrol to switch beween control in Excel VBA form Pin
Maciej Los3-Apr-18 3:29
mveMaciej Los3-Apr-18 3:29 
QuestionChange the Project folder's name Pin
desanti30-Mar-18 12:22
desanti30-Mar-18 12:22 
AnswerRe: Change the Project folder's name Pin
A_Griffin30-Mar-18 21:44
A_Griffin30-Mar-18 21:44 
GeneralRe: Change the Project folder's name Pin
desanti31-Mar-18 5:44
desanti31-Mar-18 5:44 
AnswerRe: Change the Project folder's name Pin
Gerry Schmitz31-Mar-18 7:01
mveGerry Schmitz31-Mar-18 7:01 
QuestionProblem with custom control stealing focus: Resolved 'sort of' Pin
mo149230-Mar-18 8:02
mo149230-Mar-18 8:02 
AnswerRe: Problem with custom control stealing focus: Resolved 'sort of' Pin
Gerry Schmitz31-Mar-18 7:10
mveGerry Schmitz31-Mar-18 7:10 
QuestionAddition and Subtraction Operation in SQL update query Pin
Member 1375497530-Mar-18 4:50
Member 1375497530-Mar-18 4:50 
QuestionRe: Addition and Subtraction Operation in SQL update query Pin
Eddy Vluggen30-Mar-18 5:23
professionalEddy Vluggen30-Mar-18 5:23 
AnswerRe: Addition and Subtraction Operation in SQL update query Pin
Richard Deeming3-Apr-18 8:30
mveRichard Deeming3-Apr-18 8:30 
Questionproblem with opening a text file in my app with double click Pin
Sh3R3iF29-Mar-18 9:22
Sh3R3iF29-Mar-18 9:22 
QuestionRe: problem with opening a text file in my app with double click Pin
Richard MacCutchan29-Mar-18 22:19
mveRichard MacCutchan29-Mar-18 22:19 
QuestionProblem running a command when the path has spaces in its name. Pin
David Mujica27-Mar-18 9:37
David Mujica27-Mar-18 9: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.