Click here to Skip to main content
15,900,258 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralVB Pin
Ebin13-Feb-03 17:05
Ebin13-Feb-03 17:05 
QuestionHow do i code an animated (gif) button in vb.NET? Pin
qsdnj13-Feb-03 7:10
qsdnj13-Feb-03 7:10 
AnswerRe: How do i code an animated (gif) button in vb.NET? Pin
RZLR18-Feb-03 0:22
RZLR18-Feb-03 0:22 
Generalpowerpoint automation Pin
pnpfriend13-Feb-03 5:14
pnpfriend13-Feb-03 5:14 
GeneralMSHFlexGrid Pin
Andy H12-Feb-03 11:28
Andy H12-Feb-03 11:28 
GeneralRe: MSHFlexGrid Pin
Andy H12-Feb-03 12:19
Andy H12-Feb-03 12:19 
Generaldisabling a row in a datagrid Pin
mcm12-Feb-03 5:40
mcm12-Feb-03 5:40 
Generalchecking for a numeric value in a loop Pin
mcm12-Feb-03 1:01
mcm12-Feb-03 1:01 
With Adodc4.Recordset
.MoveFirst
Do While Not .EOF
Dim strPriceCode As String
strPriceCode = DataGrid1.Columns("PriceCode")

Dim codeSQL As String
codeSQL = "Select PriceCode " & _
" From PriceDescription " & _
" Where PriceCode = '" & strPriceCode & "'"
Set RS = Conn.Execute(codeSQL)

If RS.BOF And RS.EOF Then
MsgBox " '" & strPriceCode & "' Price code does not exist - please try another", vbExclamation, "Invalid data"
End If

DataGrid1.Columns("Price") = txtTest.Text
If Not IsNumeric(Me.txtTest.Text) Then
MsgBox "Please enter a valid value for Quantity", vbExclamation, "Missing Quantity"
Exit Sub
End If
Dim cPrice As Currency
cPrice = DataGrid1.Columns("Price")

'updating the price table
Dim updateSQL As String
updateSQL = "Update Price set price = " & cPrice & " " & _
" where PriceCode = '" & strPriceCode & "' " & _
" AND ProductCode = '" & strProductCode & "'"
Set RS = Conn.Execute(updateSQL)
.MoveNext
Loop
End With

to (attempt to!) explain the above code, i am saving 1 column of a datagrid, and looping through it by means of the Recordset that it is bound to at run time. However, i want to ensure that the value entered at each record is a numberic value, so it has to be included in the loop as can be seen above. However, when i try to run it ( and enter a non-numeric value to test it) i get the following error " Multiple step operation generated errors - check each status value"....is there anything i can do to fix this? if you need any additional information, please let me know! Thanks in advance!
GeneralRe: checking for a numeric value in a loop Pin
xBlitzerx12-Feb-03 4:21
xBlitzerx12-Feb-03 4:21 
QuestionHow To Show MDI Form in ActiveXDll.OCX Pin
Uttam Kumar Unik!11-Feb-03 22:29
Uttam Kumar Unik!11-Feb-03 22:29 
AnswerRe: How To Show MDI Form in ActiveXDll.OCX Pin
Ray Cassick13-Feb-03 3:17
Ray Cassick13-Feb-03 3:17 
GeneralRe: How To Show MDI Form in ActiveXDll.OCX Pin
Uttam Kumar Unik!13-Feb-03 23:22
Uttam Kumar Unik!13-Feb-03 23:22 
GeneralRe: How To Show MDI Form in ActiveXDll.OCX Pin
Ray Cassick14-Feb-03 7:39
Ray Cassick14-Feb-03 7:39 
AnswerRe: How To Show MDI Form in ActiveXDll.OCX Pin
Tony Stark18-Feb-03 3:19
Tony Stark18-Feb-03 3:19 
General"Back" and "Forward" button functionality Pin
Vidvan11-Feb-03 10:50
Vidvan11-Feb-03 10:50 
GeneralRe: "Back" and "Forward" button functionality Pin
Nick Parker11-Feb-03 18:14
protectorNick Parker11-Feb-03 18:14 
GeneralSending Email Pin
Nick Seng10-Feb-03 19:28
Nick Seng10-Feb-03 19:28 
GeneralRecordSets In ADO for VB6 Pin
rradhay10-Feb-03 8:52
rradhay10-Feb-03 8:52 
GeneralRe: RecordSets In ADO for VB6 Pin
Andy H10-Feb-03 22:06
Andy H10-Feb-03 22:06 
GeneralRe: RecordSets In ADO for VB6 Pin
Andy H10-Feb-03 22:17
Andy H10-Feb-03 22:17 
GeneralRe: RecordSets In ADO for VB6 Pin
rradhay12-Feb-03 2:13
rradhay12-Feb-03 2:13 
GeneralRe: RecordSets In ADO for VB6 Pin
Andy H12-Feb-03 3:52
Andy H12-Feb-03 3:52 
GeneralRe: RecordSets In ADO for VB6 Pin
rradhay20-Feb-03 4:54
rradhay20-Feb-03 4:54 
GeneralCatching return value form .exe Pin
Xanty10-Feb-03 4:40
Xanty10-Feb-03 4:40 
GeneralRe: Catching return value form .exe Pin
Ray Cassick10-Feb-03 6:59
Ray Cassick10-Feb-03 6:59 

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.