Project Detail

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

Find the error in my VB6 code that prevents the proper value is project number 456072
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: visu14

Budget: $30-250

Created: 06/23/2009 at 0:53 EDT

Bid Count: 28

Average Bid:
$ 37

06/25/2009 at 0:53 EDT

Project Creator: MyGreyGoose
Employer Rating: 10/1010/1010/1010/1010/1010/1010/1010/1010/1010/10 (2 reviews)

Bid On This Project
 

Description

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

lstProgram.Enabled = 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
Debug.Print "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
lstProgram.Enabled = 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
dbObj.dbProp = strConn
mSQL = "SELECT * FROM out_03_DealConfigs WHERE DealNo = '" & DealNumber & "' AND " & _
" ModelID = " & ModelID & " AND ConfigurationID = " & ConfigId
Set rs = dbObj.getRS(mSQL, isException, errDesc)
If isException = 0 Then
If Not rs.EOF Then
If Not dbObj.editRecord("out_03_DealConfigs", editString, "DealNo = '" & DealNumber & "' AND " & _
" ModelID = " & ModelID & " AND ConfigurationID = " & ConfigId, errDesc) Then
Debug.Print "Error Editing SPR"
End If
End If
End If
Set rs = Nothing
Set dbObj = Nothing
End Function


Additional files submitted:
module.txt

Messages Posted:1 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

 

33

3 days

06-23-2009 04:16 EDT

Hi, I think I can help You:-)! Best regards, netcoder:-)

help

 

30

0 days

06-23-2009 04:04 EDT

Hi Good day, Expert in Vb 6.0 Bug fixing. Ready to start right now. I'll fix it in few hours (May be in mins.) Waiting for your selection. Regards C.Rajesh B.E

help

 

35

1 day

06-23-2009 02:00 EDT

I'm a VB coder with 10 years experience in VB6 coding for business applications and I can help you with this.

help

 

50

0 days

06-23-2009 01:07 EDT

Hi.. Am expert in Vb 6.0... Ready to start...

help

 

30

1 day

06-23-2009 03:18 EDT

REady to start off immediately

help

 

30

0 days

06-23-2009 01:25 EDT

Hi MyGreyGoose, please see PM for details

help

 

39.95

1 day

06-23-2009 03:33 EDT

Greetings California from Pennsylvania.. There is an old prgramming adage.. "The first 90% of the code takes 10% of the time. The last 10% of the code takes 90% of the time." You have done very well with your program so far. Now, lets get the last 10% done.. {smile}. Hello my name is Bill.. I am a VB6, SQL, VB.Net, VBA, VBScript, MsAccess, MsExcel, and Windows programming Expert, Leader and Mentor [screenname:wsh2] at www.vbcity.com and www.experts-exchange.com. I have successfully completed quite a few GAF projects, so you can find additional references for me here: http://elance.com/users/feedback_172391.html I have 20+ years of hands-on Programming and Business Information System experience to include many applications very similar to yours. I have a BS in Accounting with a Marketing Minor and graduated college with the highest of honors. I am located in Easton PA USA (halfway between Philadelphia and New York City). American english is my only language. I look forward to assisting you in achieving all of your goals in this endeavor. Respectfully, Bill.

help

 

30

0 days

06-23-2009 08:50 EDT

kindly refer PMB, Thanks

help

 

35

0 days

06-23-2009 02:35 EDT

Hello - Please provide remote access to this project. Thank you. Chandra Ram

help

 

35

1 day

06-23-2009 04:41 EDT

I am ready to start immediately and OK with remote access and debugging along side with you. Please refer to PM

help

 

30

1 day

06-23-2009 02:24 EDT

See PMB, please

help

 

30

0 days

06-23-2009 03:09 EDT

Sir, I'm a serious project provider. Please check my PM. Thanks.

help

 

30

0 days

06-23-2009 06:44 EDT

Hello. I have already found the error in your code.

help

 

30

0 days

06-23-2009 01:55 EDT

I have huge experience in VB. I can start ASAP.

help

 

30

0 days

06-23-2009 12:16 EDT

Hi, Pls check pmb for more details. Thanks, djain01

help

 

35

3 days

06-23-2009 08:11 EDT

Bidder Comments : Dear Sir, Kindly refer to your PM for more details. Thanks & Regards, SANDS Team.

help

 

30

1 day

06-23-2009 02:44 EDT

(No Feedback Yet)

this is simple

help

 

125

2 days

06-23-2009 04:49 EDT

(No Feedback Yet)

i will fix ur problem with comments on my modify code

help

 

30

1 day

06-23-2009 05:03 EDT

(No Feedback Yet)

Hi,been doing bug fixes in vb for 4 years.

help

 

30

1 day

06-23-2009 05:06 EDT

(No Feedback Yet)

I‘m very good at VB and have much experience in bug fixing on them.

help

 

30

3 days

06-23-2009 06:36 EDT

(No Feedback Yet)

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

help

 

30

1 day

06-23-2009 06:13 EDT

(No Feedback Yet)

I am interested to work on this and also i can start it as soon as you want

help

 

30

0 days

06-23-2009 06:43 EDT

(No Feedback Yet)

See my PM please. Thanks

help

 

50

1 day

06-23-2009 09:31 EDT

(No Feedback Yet)

pls check PM

help

 

30

0 days

06-23-2009 12:12 EDT

(No Feedback Yet)

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

help

 

40

3 days

06-23-2009 14:09 EDT

(No Feedback Yet)

i have experiance on vb 6.0 morethan 3 years

help

 

30

5 days

06-23-2009 14:43 EDT

(No Feedback Yet)

Hi, we have already worked in VB6. we are 3+ year of expereince guy team. our last project was in VB.

help

 

50

1 day

06-23-2009 15:54 EDT

(No Feedback Yet)

Please See PMB.

help


    Bid on this Project