gheyman
Well-known Member
- Joined
- Nov 14, 2005
- Messages
- 2,347
- Office Version
- 365
- Platform
- Windows
This code is not doing anything. I am trying to identify Fields that the user must enter data by making the field border red is the field is Null or "".
But nothing is happening.
Code:
Private Sub Form_Activate()
'Check to see if PID is set to "Select-A-PID"
If Me.RFPMgr_ID = 1 Then
DoCmd.OpenForm "frmRFPManagerPIDSelection", acNormal
If Me.BidNoBid = Null Or Me.BidNoBid = "" Then
Me.BidNoBid.BorderColor = vbRed
If Me.ChargeNumber = Null Or Me.ChargeNumber = "" Then
Me.ChargeNumber.BorderColor = vbRed
If Me.ProposalDescription = Null Or Me.ProposalDescription = "" Then
Me.ProposalDescription.BorderColor = vbRed
If Me.Program = Null Or Me.Program = "" Then
Me.Program.BorderColor = vbRed
If Me.Commodity = Null Or Me.Commodity = "" Then
Me.Commodity.BorderColor = vbRed
If Me.Customer = Null Or Me.Customer = "" Then
Me.Customer.BorderColor = vbRed
If Me.RFPReceipt = Null Or Me.RFPReceipt = "" Then
Me.RFPReceipt.BorderColor = vbRed
If Me.RFPReceipt = Null Or Me.RFPReceipt = "" Then
Me.RFPReceipt.BorderColor = vbRed
If Me.AgreedResponseDate = Null Or Me.AgreedResponseDate = "" Then
Me.AgreedResponseDate.BorderColor = vbRed
If Me.ExtendedResponseDate = Null Or Me.ExtendedResponseDate = "" Then
Me.ExtendedResponseDate.BorderColor = vbRed
If Me.RFP_StatusX = Null Or Me.RFP_StatusX = "" Then
Me.RFP_StatusX.BorderColor = vbRed
If Me.RFP_StageX = Null Or Me.RFP_StageX = "" Then
Me.RFP_StageX.BorderColor = vbRed
If Me.Solicitation_TypeX = Null Or Me.Solicitation_TypeX = "" Then
Me.Solicitation_TypeX.BorderColor = vbRed
If Me.Bid_TypeX = Null Or Me.Bid_TypeX = "" Then
Me.Bid_TypeX.BorderColor = vbRed
End If
End If
End If
End If
End If
End If
End If
End If
End If
End If
End If
End If
End If
End If
End If
Me.Refresh
End Sub
But nothing is happening.