Click here to Skip to main content
16,008,010 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Secure Code to Reflector Pin
The Man from U.N.C.L.E.18-Nov-09 22:53
The Man from U.N.C.L.E.18-Nov-09 22:53 
GeneralRe: Secure Code to Reflector Pin
Anubhava Dimri18-Nov-09 23:13
Anubhava Dimri18-Nov-09 23:13 
GeneralRe: Secure Code to Reflector Pin
Dave Kreskowiak19-Nov-09 2:08
mveDave Kreskowiak19-Nov-09 2:08 
GeneralRe: Secure Code to Reflector Pin
o m n i19-Nov-09 2:37
o m n i19-Nov-09 2:37 
GeneralRe: Secure Code to Reflector Pin
Dave Kreskowiak19-Nov-09 3:34
mveDave Kreskowiak19-Nov-09 3:34 
GeneralRe: Secure Code to Reflector Pin
Anubhava Dimri19-Nov-09 17:39
Anubhava Dimri19-Nov-09 17:39 
GeneralRe: Secure Code to Reflector Pin
Anubhava Dimri19-Nov-09 17:09
Anubhava Dimri19-Nov-09 17:09 
Questionlower case to upper case but looks like something else is going on Pin
VB 12318-Nov-09 16:49
VB 12318-Nov-09 16:49 
Original error-free code is this:

If .resoi.Fields.Item("rtype").Value = "M" Then
x = .sio.Fields.Item("rpop").Value * .itemsi.Fields.Item("ireptime").Value * wage * .iri.Fields.Item("trqtyrqrd").Value
.siro.Fields.Item("alaborcost").Value = .siro.Fields.Item("alaborcost").Value + x
.sro.Fields.Item("arescost").Value = .sro.Fields.Item("arescost").Value + x
.siro.Fields.Item("alaborhrs").Value = .siro.Fields.Item("alaborhrs").Value + .sio.Fields.Item("rpop").Value * .itemsi.Fields.Item("ireptime").Value * .iri.Fields.Item("trqtyrqrd").Value
End If

Goal: lower-case “m” RTYPES are ignored. Better if converted to upper-case. This older VB program was converted to VB 2008, and uses an MS ACCESS 2002 db for i/o (relevant?). Attempts to revise code generate the error message (shown here at bottom), which points NOT to the IF statement, but to the italicized line 2 lines later. Any ideas? Thank you. Dave

Attempted fix #1: adding “.ToUpper()” to IF statement creates “no current record” error message, shown below.
If .resoi.Fields.Item("rtype").Value.ToUpper() = "M" Then

Attempted fix #2: changed IF statement to read:
... = (“m” OR “M”) THEN

Attempted fix #3: changed IF statement to read:
... = IF(... = “M”) OR (... = “m”) THEN

Attempted fix #4: changed IF statement to read:
... = IF(... = “M”) OR (... = “m”) THEN

Attempted fix #5: removed IF statement and END IF statements altogether - STILL got the error.

Error message:

COMExeption was unhandled (in heading)
No current record (suggests i/o problem)
Check the ErrorCode property of the exception to determine the HRESULT returned by the COM object.
Get general help for this exeption.
AnswerRe: lower case to upper case but looks like something else is going on Pin
Dave Kreskowiak18-Nov-09 17:26
mveDave Kreskowiak18-Nov-09 17:26 
GeneralRe: lower case to upper case but looks like.... SOLVED Pin
VB 12319-Nov-09 3:33
VB 12319-Nov-09 3:33 
GeneralRe: lower case to upper case but looks like.... SOLVED Pin
Dave Kreskowiak19-Nov-09 3:38
mveDave Kreskowiak19-Nov-09 3:38 
GeneralRe: lower case to upper case but looks like.... SOLVED Pin
VB 12320-Nov-09 12:37
VB 12320-Nov-09 12:37 
GeneralUnexpected characters in print ouptut - VB2008 Pin
rbc102518-Nov-09 10:48
rbc102518-Nov-09 10:48 
GeneralRe: Unexpected characters in print ouptut - VB2008 Pin
DaveAuld18-Nov-09 11:06
professionalDaveAuld18-Nov-09 11:06 
GeneralRe: Unexpected characters in print ouptut - VB2008 Pin
rbc102518-Nov-09 17:06
rbc102518-Nov-09 17:06 
QuestionProblem in VB while trying to execute SQL Code Pin
nhsal6918-Nov-09 3:37
nhsal6918-Nov-09 3:37 
AnswerRe: Problem in VB while trying to execute SQL Code Pin
Eduard Keilholz18-Nov-09 4:08
Eduard Keilholz18-Nov-09 4:08 
GeneralRe: Problem in VB while trying to execute SQL Code Pin
nhsal6918-Nov-09 4:17
nhsal6918-Nov-09 4:17 
GeneralRe: Problem in VB while trying to execute SQL Code Pin
Luc Pattyn18-Nov-09 5:02
sitebuilderLuc Pattyn18-Nov-09 5:02 
AnswerRe: Problem in VB while trying to execute SQL Code Pin
The Man from U.N.C.L.E.18-Nov-09 8:01
The Man from U.N.C.L.E.18-Nov-09 8:01 
GeneralRe: Problem in VB while trying to execute SQL Code Pin
nhsal6918-Nov-09 21:13
nhsal6918-Nov-09 21:13 
GeneralRe: Problem in VB while trying to execute SQL Code Pin
Ashfield18-Nov-09 21:30
Ashfield18-Nov-09 21:30 
GeneralRe: Problem in VB while trying to execute SQL Code Pin
nhsal6918-Nov-09 23:08
nhsal6918-Nov-09 23:08 
GeneralRe: Problem in VB while trying to execute SQL Code Pin
Ashfield19-Nov-09 1:25
Ashfield19-Nov-09 1:25 
GeneralRe: Problem in VB while trying to execute SQL Code Pin
The Man from U.N.C.L.E.18-Nov-09 22:44
The Man from U.N.C.L.E.18-Nov-09 22:44 

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.