I have the following code.<br>
<br>
<br>
Private Sub Form_Current()<br>
<br>
' If value in Status text box is Equal to "FORWARDER" or "HAULIER"<br>
' text box is display.<br>
<br>
If (Me!StatusName) = "Forwarder" Or (Me!StatusName) = "Haulier" Then<br>
Me!Available.Visible = True<br>
Me!MoreDetails.Visible = True<br>
<br>
' Otherwise, display Box is not visible<br>
<br>
Else<br>
Me!Available.Visible = False<br>
Me!MoreDetails.Visible = False<br>
End If<br>
<br>
<br>
<br>
End Sub<br>
<br>
<br>
When a new record is entered or an old record edited this button will not appear/disappear until you move to the next record and back, by selecting the command remove filter it does work. has anyone got any idea how I can add a remove filter to the bottom of this sum so that it appears as soon as the correct value is selected?<br>
<br>
Many thanks<br>
<br>
J<br>
<br>
<br>
Private Sub Form_Current()<br>
<br>
' If value in Status text box is Equal to "FORWARDER" or "HAULIER"<br>
' text box is display.<br>
<br>
If (Me!StatusName) = "Forwarder" Or (Me!StatusName) = "Haulier" Then<br>
Me!Available.Visible = True<br>
Me!MoreDetails.Visible = True<br>
<br>
' Otherwise, display Box is not visible<br>
<br>
Else<br>
Me!Available.Visible = False<br>
Me!MoreDetails.Visible = False<br>
End If<br>
<br>
<br>
<br>
End Sub<br>
<br>
<br>
When a new record is entered or an old record edited this button will not appear/disappear until you move to the next record and back, by selecting the command remove filter it does work. has anyone got any idea how I can add a remove filter to the bottom of this sum so that it appears as soon as the correct value is selected?<br>
<br>
Many thanks<br>
<br>
J<br>