Find Jobs
Hire Freelancers

Find the error in my VB6 code that prevents the proper value

$30-250 USD

Completed
Posted almost 15 years ago

$30-250 USD

Paid on delivery
I have this function in VISUAL BASIC 6 that updates a record. I can't get it to update 1 certain field, "SPR". It works fine when, a) after I close my application and re-open it, or b) when I substitute a hard value for the variable (aka, instead of SPRTemp, I use .5). Can anyone please take a look at this function and see what might be going wrong? I'll also upload the complete module. If there's other info you need, I'll answer any questions you may have. I'm also open to giving you remote access to my computer so you can debug along side of me (RECOMMENDED!!!!) Dim SPRTemp As Single ' for temporary storage of SPRDiscount [login to view URL] = False If txtSPRDiscount <> "" Then SPRTemp = rPlace(txtSPRDiscount) If Not IsNull(SPRTemp) Then If IsNumeric(SPRTemp) Then If SPRTemp > 0 And SPRTemp < 100 Then SPRChange = True SPR2 = Val(Replace(txtSPRDiscount, "%", "")) / 100 If Not performComputeData Then ' Compute Data based from the SPR input [login to view URL] "Error Computing Data" Else ' if there's no error lstProgram will be enabled and function performComputeData will be initiated SPRTemp = SPRTemp / 100 performComputeData '---- Update out_03_DealConfigs based from SPR changes ---- performMoveData editSPRTruckNotes txtNumber, ModelID, currConfigID, _ "SPR=" & SPRTemp & _ ", DealerNet=" & FinalDealerNet & _ ", FinalCost=" & FinalCost & _ ", FinalCurrentCost=" & FinalCurrentCost & _ ", FinalGoingToCost=" & FinalGoingToCost & _ ", Margin=" & FinalMargin & _ ", CurrentMargin=" & FinalCurrentMargin & _ ", GoingToMargin=" & FinalGoingToMargin & _ ", MarginPercent=" & AdjustMarginPercent & _ ", CurrentMarginPercent=" & AdjustCurrentMarginPercent & _ ", GoingToMarginPercent=" & AdjustGoingToMarginPercent SPR2 = SPRTemp [login to view URL] = True End If Else txtSPR = 0 End If End If End If MsgBox Val(SPRTemp) End Sub Function editSPRTruckNotes(ByVal DealNumber As String, ByVal ModelID As Long, _ ByVal ConfigId As Long, ByVal editString As String) '---- Function that will edit SPR in out_03_DealConfigs ----- Dim rs As Recordset Dim dbObj As New dbFunctions Dim i As Integer [login to view URL] = strConn mSQL = "SELECT * FROM out_03_DealConfigs WHERE DealNo = '" & DealNumber & "' AND " & _ " ModelID = " & ModelID & " AND ConfigurationID = " & ConfigId Set rs = [login to view URL](mSQL, isException, errDesc) If isException = 0 Then If Not [login to view URL] Then If Not [login to view URL]("out_03_DealConfigs", editString, "DealNo = '" & DealNumber & "' AND " & _ " ModelID = " & ModelID & " AND ConfigurationID = " & ConfigId, errDesc) Then [login to view URL] "Error Editing SPR" End If End If End If Set rs = Nothing Set dbObj = Nothing End Function
Project ID: 456072

About the project

25 proposals
Remote project
Active 15 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi.. Am expert in Vb 6.0... Ready to start...
$50 USD in 0 day
5.0 (6 reviews)
3.4
3.4
25 freelancers are bidding on average $38 USD for this job
User Avatar
Hello - Please provide remote access to this project. Thank you. Chandra Ram
$35 USD in 0 day
4.9 (35 reviews)
5.6
5.6
User Avatar
REady to start off immediately
$30 USD in 1 day
4.9 (37 reviews)
5.6
5.6
User Avatar
Hi, I think I can help You:-)! Best regards, netcoder:-)
$33 USD in 3 days
4.8 (54 reviews)
5.5
5.5
User Avatar
Hi, Pls check pmb for more details. Thanks, djain01
$30 USD in 0 day
5.0 (48 reviews)
5.4
5.4
User Avatar
I am ready to start immediately and OK with remote access and debugging along side with you. Please refer to PM
$35 USD in 1 day
5.0 (11 reviews)
3.9
3.9
User Avatar
kindly refer PMB, Thanks
$30 USD in 0 day
5.0 (3 reviews)
2.7
2.7
User Avatar
See PMB, please
$30 USD in 1 day
5.0 (1 review)
2.0
2.0
User Avatar
I'm a VB coder with 10 years experience in VB6 coding for business applications and I can help you with this.
$35 USD in 1 day
0.0 (0 reviews)
3.1
3.1
User Avatar
this is simple
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Sir, I'm a serious project provider. Please check my PM. Thanks.
$30 USD in 0 day
0.0 (0 reviews)
0.0
0.0
User Avatar
i will fix ur problem with comments on my modify code
$125 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi,been doing bug fixes in vb for 4 years.
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I‘m very good at VB and have much experience in bug fixing on them.
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I have done MCA and i have exp of VB project 1 yr i will try to solve ur problem but for this i have to debug ur project so pls if u can provide ur project then it will be easy for me
$30 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I am interested to work on this and also i can start it as soon as you want
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
See my PM please. Thanks
$30 USD in 0 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello. I have already found the error in your code.
$30 USD in 0 day
0.0 (2 reviews)
0.0
0.0
User Avatar
Bidder Comments : Dear Sir, Kindly refer to your PM for more details. Thanks & Regards, SANDS Team.
$35 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
pls check PM
$50 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi Why unnecessarily you are bidding for bug fix? You need not to pay me anything. I am from India. I am C/C++ programmer. Lets work on together to fix this issue. If you are interested let me know so that we can work. Thanks and Regards Sathish Kumar
$30 USD in 0 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Bellevue, United States
5.0
11
Payment method verified
Member since Jun 23, 2009

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.