Advertisement
Advertisement
| 06.19.2008 at 04:41PM PDT, ID: 23500865 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: |
Private Sub AddRecord(ByVal m_PortNum As Integer, ByVal m_Time As String, ByVal m_Day As String, ByVal m_OnOff As Boolean)
Dim conn As OleDbConnection
Dim strInsert As String
Dim cmdInsert As OleDbCommand
conn = New OleDbConnection("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=c:\dev\homeauto2.mdb")
'strInsert = "Insert Into RunTimeHistory( PortNum, Time, Day, OnOff) Values (m_PortNum, m_Time, m_Day, m_OnOff)"
'strInsert = "Insert Into RunTimeHistory( PortNum, Time, Day) Values (PortNum, Time, Day)"
'strInsert = "Insert Into OnOffTimes( Comment) Values ('asdf')" ' this works
'strInsert = "Insert Into test( test2) Values (6)"
cmdInsert = New OleDbCommand("INSERT INTO RunTimeHistory( PortNum, Time, Day, OnOff)")
'Values (m_PortNum, m_Time, m_Day, m_OnOff)")
cmdInsert.Parameters.Add("@PortNum", OleDbType.Integer).Value = 3
cmdInsert.Parameters.Add("@Time", OleDbType.VarChar, 40).Value = " asdf "
cmdInsert.Parameters.Add("@Day", OleDbType.VarChar, 40).Value = " hellooooo.... "
cmdInsert.Parameters.Add("@OnOff", OleDbType.Boolean).Value = True
cmdInsert.Connection = conn
conn.Open()
cmdInsert.ExecuteNonQuery()
conn.Close()
|