VB Code:
Private Sub CmdSave_Click()
Dim INSERTStmt As String
Dim OptCtrtType As Control
Set Con = New ADODB.Connection
Set rs = New ADODB.Recordset
Con.Open strCon
INSERTStmt = "INSERT INTO Contract (Corps_Institution, Program, Funder, " & _
"Contract_Amount, Contract_Number, Start_Date, End_Date, Contract_Type, " & _
"Application_Submission, Face_Sheet_Completed, Received_in_SS_Dept, " & _
"Presented_to_DFB, Sent_to_THQ, Received_from_THQ, Sent_to_Funder_or_Unit, " & _
"Executed_Copy_received_from_Funder, Executed_Copy_sent_to_THQ_and_Unit, Filed)" & _
"VALUES ('" & CboUnit.Text & "', '" & CboProgram.Text & "', '" & CboFunder.Text & "', " & _
"'" & TxtCtrtDollarAmount.Text & "', '" & TxtCtrtNo.Text & "', #" & TxtCtrtStartDate.Text & "#, " & _
"#" & TxtCtrtEndDate.Text & "#, '" & OptCtrtType.Value & "', " & _
"#" & TxtAppDate.Text & "#, #" & TxtFaceSheetCompleted.Text & "#, #" & TxtReceivedBySSDept.Text & "#, " & _
"#" & TxtSubmittedToDFB.Text & "#, #" & TxtSentToTHQ.Text & "#, #" & TxtReceivedFromTHQ.Text & "#, " & _
"#" & TxtSentToFunder.Text & "#, #" & TxtExecutedCopyReceivedFromFunder.Text & "#, " & _
"#" & TxtExecutedCopySentToTHQ.Text & "#, #" & TxtFiled.Text & "#)"
INSERTStmt = Replace(INSERTStmt, "##", "NULL")
Con.Execute "INSERT INTO Contract (Corps_Institution, Program, Funder, " & _
"Contract_Amount, Contract_Number, Start_Date, End_Date, Contract_Type, " & _
"Application_Submission, Face_Sheet_Completed, Received_in_SS_Dept, " & _
"Presented_to_DFB, Sent_to_THQ, Received_from_THQ, Sent_to_Funder_or_Unit, " & _
"Executed_Copy_received_from_Funder, Executed_Copy_sent_to_THQ_and_Unit, Filed)" & _
"VALUES ('" & CboUnit.Text & "', '" & CboProgram.Text & "', '" & CboFunder.Text & "', " & _
"'" & TxtCtrtDollarAmount.Text & "', '" & TxtCtrtNo.Text & "', #" & TxtCtrtStartDate.Text & "#, " & _
"#" & TxtCtrtEndDate.Text & "#, '" & OptCtrtType.Value & "', " & _
"#" & TxtAppDate.Text & "#, #" & TxtFaceSheetCompleted.Text & "#, #" & TxtReceivedBySSDept.Text & "#, " & _
"#" & TxtSubmittedToDFB.Text & "#, #" & TxtSentToTHQ.Text & "#, #" & TxtReceivedFromTHQ.Text & "#, " & _
"#" & TxtSentToFunder.Text & "#, #" & TxtExecutedCopyReceivedFromFunder.Text & "#, " & _
"#" & TxtExecutedCopySentToTHQ.Text & "#, #" & TxtFiled.Text & "#)"
Con.Close
Set Con = Nothing
End Sub