Hi Group
I had made some changes to this code and added a checkbox as part of a if then statement. When I run the code for the checkbox if then, I can`t seem to get the results to populated in the grid. Am wondering what I`m going wrong.
The code in question has a note above it
PS what`s the difference, if any, between these statements.
optFrontInset.Value = True
Or
optFrontInset.Value = 1
'************** Applied FRONT **************
If OptAppliedFront.Value = True Then
If optFrontInset.Value = True Then
InsertRow irow, txtID, cbDrawerType.Text, "Applied Front" & " " & "(I)", _
QtyOne, ds(FrontInsetWidth, Mode), ds(FrontInsetLength, Mode), _
.matFront.material, ds(.matFront.thickness, Mode), _
ds(FrontInsetLength, Mode), txtNotes, 0
Else 'optFrtOverlay.Value = True Then
InsertRow irow, txtID, cbDrawerType.Text, "Applied Front" & " " & "(O)", _
QtyOne, ds(FrontOverlayWidth, Mode), ds(FrontOverlayLength, Mode), _
.matFront.material, ds(.matFront.thickness, Mode), _
ds(FrontOverlayLength, Mode), txtNotes, 0
End If
Note : This if then below does not seem to run.If checkNoFront.Value = 1 Then
If checkNoFront.Value = 1 Then
InsertRow irow, txtID, cbDrawerType.Text, " No Applied Front" & " " & "(O)", _
"0", "0", ds(FrontOverlayLength, Mode), _
.matFront.material, ds(.matFront.thickness, Mode), _
ds(FrontOverlayLength, Mode), txtNotes, 0
End If
irow = irow + 1
'************** Integral FRONT **************
ElseIf optIntegralFrt.Value = True Then
If optFrontInset.Value = True Then
InsertRow irow, txtID, cbDrawerType.Text, "Integral Front" & " " & "(I)", _
QtyOne, ds(FrontInsetWidth, Mode), ds(FrontInsetLength, Mode), _
.matFront.material, ds(.matFront.thickness, Mode), _
ds(FrontInsetLength, Mode), txtNotes, 0
Else ' optFrtOverlay.Value = True Then
InsertRow irow, txtID, cbDrawerType.Text, "Integral Front" & " " & "(O)", _
QtyOne, ds(FrontOverlayWidth, Mode), ds(FrontOverlayLength, Mode), _
.matFront.material, ds(.matFront.thickness, Mode), _
ds(FrontOverlayLength, Mode), txtNotes, 0
End If
irow = irow + 1
End If
End With
End Sub
I had made some changes to this code and added a checkbox as part of a if then statement. When I run the code for the checkbox if then, I can`t seem to get the results to populated in the grid. Am wondering what I`m going wrong.
The code in question has a note above it
PS what`s the difference, if any, between these statements.
optFrontInset.Value = True
Or
optFrontInset.Value = 1
'************** Applied FRONT **************
If OptAppliedFront.Value = True Then
If optFrontInset.Value = True Then
InsertRow irow, txtID, cbDrawerType.Text, "Applied Front" & " " & "(I)", _
QtyOne, ds(FrontInsetWidth, Mode), ds(FrontInsetLength, Mode), _
.matFront.material, ds(.matFront.thickness, Mode), _
ds(FrontInsetLength, Mode), txtNotes, 0
Else 'optFrtOverlay.Value = True Then
InsertRow irow, txtID, cbDrawerType.Text, "Applied Front" & " " & "(O)", _
QtyOne, ds(FrontOverlayWidth, Mode), ds(FrontOverlayLength, Mode), _
.matFront.material, ds(.matFront.thickness, Mode), _
ds(FrontOverlayLength, Mode), txtNotes, 0
End If
Note : This if then below does not seem to run.If checkNoFront.Value = 1 Then
If checkNoFront.Value = 1 Then
InsertRow irow, txtID, cbDrawerType.Text, " No Applied Front" & " " & "(O)", _
"0", "0", ds(FrontOverlayLength, Mode), _
.matFront.material, ds(.matFront.thickness, Mode), _
ds(FrontOverlayLength, Mode), txtNotes, 0
End If
irow = irow + 1
'************** Integral FRONT **************
ElseIf optIntegralFrt.Value = True Then
If optFrontInset.Value = True Then
InsertRow irow, txtID, cbDrawerType.Text, "Integral Front" & " " & "(I)", _
QtyOne, ds(FrontInsetWidth, Mode), ds(FrontInsetLength, Mode), _
.matFront.material, ds(.matFront.thickness, Mode), _
ds(FrontInsetLength, Mode), txtNotes, 0
Else ' optFrtOverlay.Value = True Then
InsertRow irow, txtID, cbDrawerType.Text, "Integral Front" & " " & "(O)", _
QtyOne, ds(FrontOverlayWidth, Mode), ds(FrontOverlayLength, Mode), _
.matFront.material, ds(.matFront.thickness, Mode), _
ds(FrontOverlayLength, Mode), txtNotes, 0
End If
irow = irow + 1
End If
End With
End Sub