For j = 0 To 1
'Save Row and Column Descriptions
If j = 0 Then c = "Row" Else c = "Col"
strSQL = "INSERT INTO tbHRI_Descrip (HRI_ID,Descrip_ID,DescripType,Label," & _
"Description)" & _
"VALUES ('" & Me.txtHRI_ID.Value & "','" & i & "','" & c & "','" & _
Me.Controls("txt" & c & "Label" & i).Value & "','" & _
replace(Me.Controls("txt" & c & "Descrip" & i).Value , "'", "''") & "')"
DoCmd.RunSQL strSQL
Next
|