I have a Windows Application.
I want to run two sql queries.
How can i do that in vb?
If TextBox103.Text <> "" Or TextBox104.Text <> "" Then
'If CheckBox15.Checked = False Then
'MsgBox("Invalid User Credentials, You Must Log in....")
'Exit Sub
'Else
If TextBox103.Text <> "" Or TextBox104.Text <> "" Or TextBox102.Text <> "" Or TextBox101.Text <> "" Then
SQL.RunQuery("SELECT * FROM Report1 WHERE Report1.tank_name = '" & ComboBox13.Text & "' and Report1.material_name = '" & ComboBox14.Text & "' ")
If SQL.SQLDS.Tables(0).Rows.Count > 0 Then
MsgBox("Tank Already filled with another Material!")
Exit Sub
Else
CreateUserX6()
'MsgBox("Instance is added to Report!")
End If
End If
TextBox103.Clear()
TextBox104.Clear()
TextBox101.Text = 0.0
TextBox102.Text = 0.0
GetReadingXX71(ComboBox14.Text)
GetReadingX784(ComboBox13.Text)
GetReadingX785()
End If