DTV_Janus Posted March 22, 2004 Share Posted March 22, 2004 I NEED to have this program fixed, i cant get it to write to this stupid access database file :angry: I will pay using paypal to the person that can get it to write to the rps.mdb file One note, don't convert the access file to 2000, leave it in its current formatting.. Any questions PM me. Thanks Steve help_me_neowin_.zip Link to comment https://www.neowin.net/forum/topic/151040-5-to-the-person-that-can-fix-thisvb/ Share on other sites More sharing options...
0 DTV_Janus Posted March 23, 2004 Author Share Posted March 23, 2004 Come on, 5$ :) it should be easy Link to comment https://www.neowin.net/forum/topic/151040-5-to-the-person-that-can-fix-thisvb/#findComment-1874797 Share on other sites More sharing options...
0 Steven Posted March 23, 2004 Share Posted March 23, 2004 I've forgotten how to code VB6. :s Link to comment https://www.neowin.net/forum/topic/151040-5-to-the-person-that-can-fix-thisvb/#findComment-1874806 Share on other sites More sharing options...
0 PseudoRandomDragon Posted March 23, 2004 Share Posted March 23, 2004 Now thats more like it. :D Link to comment https://www.neowin.net/forum/topic/151040-5-to-the-person-that-can-fix-thisvb/#findComment-1874973 Share on other sites More sharing options...
0 beacon Posted March 23, 2004 Share Posted March 23, 2004 Yeah i have .net and it wants to convert it. If it's any help dont use the Data Control it sucks. Perhaps post whats going wrong and where? Link to comment https://www.neowin.net/forum/topic/151040-5-to-the-person-that-can-fix-thisvb/#findComment-1875018 Share on other sites More sharing options...
0 matt74441 Posted March 23, 2004 Share Posted March 23, 2004 I've forgotten how to code VB6. :s Same here. I haven't made a VB6 application in over three years. Sorry I can't be of any help. Link to comment https://www.neowin.net/forum/topic/151040-5-to-the-person-that-can-fix-thisvb/#findComment-1875228 Share on other sites More sharing options...
0 DTV_Janus Posted March 23, 2004 Author Share Posted March 23, 2004 The point where it is wrong is (i think) the writing to the database "Private Sub cmdWrite_Click() 'write results to database 'Set Adodc1 = New ADODB.Connection If R1_Win = 5 Then Adodc1.RecordSource = "INSERT into rps (RealName1, RealName2, VictorRealName, Losses)" & _ "VALUES ('" & Real1 & "', '" & Real2 & "', '" & Winner & "', " & R2_Win & ")" Else Adodc1.RecordSource = "INSERT into rps (RealName1, RealName2, VictorRealName, Losses)" & _ "VALUES ('" & Real1 & "', '" & Real2 & "', '" & Winner & "', " & R1_Win & ")" End If 'display results were written MsgBox "Results Written to rps.mdb", vbInformation, "Database Write" End Sub If you know VB this should be an easy problem I'm just to retarted to get it right I am TOTALLY serious about the money too, I really need this fixed -steve Link to comment https://www.neowin.net/forum/topic/151040-5-to-the-person-that-can-fix-thisvb/#findComment-1875523 Share on other sites More sharing options...
0 DTV_Janus Posted March 23, 2004 Author Share Posted March 23, 2004 btw that is on frmStats... Link to comment https://www.neowin.net/forum/topic/151040-5-to-the-person-that-can-fix-thisvb/#findComment-1875527 Share on other sites More sharing options...
0 azcodemonkey Posted March 23, 2004 Share Posted March 23, 2004 You need to test your strings for null values. Real1 and Real2 come up emtpy each time for me. Dim adoCmd As ADODB.Command Dim adoConn As ADODB.Connection Set adoConn = New ADODB.Connection adoConn.ConnectionString = Adodc1.ConnectionString adoConn.Open Set adoCmd = New ADODB.Command adoCmd.ActiveConnection = adoConn If Real1 = "" Then Real1 = "n/a" End If If Real2 = "" Then Real2 = "n/a" End If If R1_Win = 5 Then adoCmd.CommandText = "INSERT into rps (RealName1, RealName2, VictorRealName, Losses)" & _ "VALUES ('" & Real1 & "', '" & Real2 & "', '" & Winner & "', " & R2_Win & ")" Else adoCmd.CommandText = "INSERT into rps (RealName1, RealName2, VictorRealName, Losses)" & _ "VALUES ('" & Real1 & "', '" & Real2 & "', '" & Winner & "', " & R1_Win & ")" End If adoCmd.Execute 'display results were written MsgBox "Results Written to rps.mdb", vbInformation, "Database Write" adoConn.Close Adodc1.Refresh Link to comment https://www.neowin.net/forum/topic/151040-5-to-the-person-that-can-fix-thisvb/#findComment-1875727 Share on other sites More sharing options...
0 DTV_Janus Posted March 24, 2004 Author Share Posted March 24, 2004 Ok i fixed that problem but it still won't write it to the access file, im so lost Link to comment https://www.neowin.net/forum/topic/151040-5-to-the-person-that-can-fix-thisvb/#findComment-1881993 Share on other sites More sharing options...
0 azcodemonkey Posted March 24, 2004 Share Posted March 24, 2004 Could you post what you fixed? The modifications I made worked for me. Link to comment https://www.neowin.net/forum/topic/151040-5-to-the-person-that-can-fix-thisvb/#findComment-1882128 Share on other sites More sharing options...
0 Colin-uk Veteran Posted March 24, 2004 Veteran Share Posted March 24, 2004 $5 to the person that can fix this www.scriptlance.com Link to comment https://www.neowin.net/forum/topic/151040-5-to-the-person-that-can-fix-thisvb/#findComment-1882184 Share on other sites More sharing options...
0 mark03 Posted March 24, 2004 Share Posted March 24, 2004 well surely first you want to set up a data environment and get your connection the the table? Link to comment https://www.neowin.net/forum/topic/151040-5-to-the-person-that-can-fix-thisvb/#findComment-1882334 Share on other sites More sharing options...
0 erf Posted March 26, 2004 Share Posted March 26, 2004 I've done it :) RPS.rar Link to comment https://www.neowin.net/forum/topic/151040-5-to-the-person-that-can-fix-thisvb/#findComment-1890974 Share on other sites More sharing options...
Question
DTV_Janus
I NEED to have this program fixed, i cant get it to write to this stupid access database file :angry:
I will pay using paypal to the person that can get it to write to the rps.mdb file
One note, don't convert the access file to 2000, leave it in its current formatting..
Any questions PM me.
Thanks
Steve
help_me_neowin_.zip
Link to comment
https://www.neowin.net/forum/topic/151040-5-to-the-person-that-can-fix-thisvb/Share on other sites
13 answers to this question
Recommended Posts