R
Ryan
Hi,
This is what i have in a function, I have an if statement that has multiple
if statement within. I have closed out all if statements with an end if,
within the if as well as closing out the original if.
If rst![A4] Like "*X*" Then
If Forms![PSV Work Order]![INSPECTION DATA].Form![PSV
PRICING1].Form![DESCRIPTION7] = "" Then
Forms![PSV Work Order]![INSPECTION DATA].Form![PSV
PRICING1].Form![DESCRIPTION7] = "REPLACE CAP"
Forms![PSV Work Order]![INSPECTION DATA].Form![PSV
PRICING1].Form![QTY7] = 1
End If
If Forms![PSV Work Order]![INSPECTION DATA].Form![PSV
PRICING1].Form![DESCRIPTION8] = "" Then
Forms![PSV Work Order]![INSPECTION DATA].Form![PSV
PRICING1].Form![DESCRIPTION8] = "REPLACE CAP"
Forms![PSV Work Order]![INSPECTION DATA].Form![PSV
PRICING1].Form![QTY8] = 1
End If
Else
End If
If i remove the if statements within the if the rest of the code works and
the field gets populated with data, when i bring them back in the code will
not populate the field.
any help would be appreciated.
Ryan
This is what i have in a function, I have an if statement that has multiple
if statement within. I have closed out all if statements with an end if,
within the if as well as closing out the original if.
If rst![A4] Like "*X*" Then
If Forms![PSV Work Order]![INSPECTION DATA].Form![PSV
PRICING1].Form![DESCRIPTION7] = "" Then
Forms![PSV Work Order]![INSPECTION DATA].Form![PSV
PRICING1].Form![DESCRIPTION7] = "REPLACE CAP"
Forms![PSV Work Order]![INSPECTION DATA].Form![PSV
PRICING1].Form![QTY7] = 1
End If
If Forms![PSV Work Order]![INSPECTION DATA].Form![PSV
PRICING1].Form![DESCRIPTION8] = "" Then
Forms![PSV Work Order]![INSPECTION DATA].Form![PSV
PRICING1].Form![DESCRIPTION8] = "REPLACE CAP"
Forms![PSV Work Order]![INSPECTION DATA].Form![PSV
PRICING1].Form![QTY8] = 1
End If
Else
End If
If i remove the if statements within the if the rest of the code works and
the field gets populated with data, when i bring them back in the code will
not populate the field.
any help would be appreciated.
Ryan