Currently I have a textbox setup that after a user updates the box, it checks to see if what they typed exists in a tag list. If True, Tagcheck=true, If false Tagcheck=false.
There is then conditional formatting on the box, when true background is green, if false background is red.
Problem #1:
After I do this and get to the bottom of the record and click to open a new record, it will not let me move to the next record until I hit escape.
Problem #2:
When I go to the next record, the box should be white if empty, or Green is True or Red is false, but the box stays the same color as the last time that I ran the code.
Private Sub txtTagLine_AfterUpdate()
If Not IsNull(DLookup("[Cable_No]", "[UnionTagLists]", "[Cable_No] = '" & Me.txtTagLine & "'")) Then
TagCheck = True
Me.txtDwg = DLookup("[From_Dwg]", "[UnionTagLists]", "[Cable_No] = '" & Me.txtTagLine & "'")
Me.[Discrepancy Detail] = Me.txtTagLine
Else
TagCheck = False
End If
End Sub
There is then conditional formatting on the box, when true background is green, if false background is red.
Problem #1:
After I do this and get to the bottom of the record and click to open a new record, it will not let me move to the next record until I hit escape.
Problem #2:
When I go to the next record, the box should be white if empty, or Green is True or Red is false, but the box stays the same color as the last time that I ran the code.
Private Sub txtTagLine_AfterUpdate()
If Not IsNull(DLookup("[Cable_No]", "[UnionTagLists]", "[Cable_No] = '" & Me.txtTagLine & "'")) Then
TagCheck = True
Me.txtDwg = DLookup("[From_Dwg]", "[UnionTagLists]", "[Cable_No] = '" & Me.txtTagLine & "'")
Me.[Discrepancy Detail] = Me.txtTagLine
Else
TagCheck = False
End If
End Sub