Murray Brown
asked on
Access Requery on change not alwats working
Hi
This doesn't always work. Is there anything I can add or change?
Private Sub txtSearchActionType_Change ()
Me.ActionType_Combo.Requer y
End Sub
This doesn't always work. Is there anything I can add or change?
Private Sub txtSearchActionType_Change
Me.ActionType_Combo.Requer
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Dale but I found that the .Text with Change event didn't always work. That was my first approach. The Lost Focus and change events both calling a requery seemed yo be best
Try the function.
.Text does work within the change event, that is actually the only place it will work, is when the control has the focus. As soon as the control loses the focus, the default property (Value) is changed to reflect what is in the .text property. And once the control has lost the focus, attempting to use the .Text property of the control will fail.
.Text does work within the change event, that is actually the only place it will work, is when the control has the focus. As soon as the control loses the focus, the default property (Value) is changed to reflect what is in the .text property. And once the control has lost the focus, attempting to use the .Text property of the control will fail.
Open in new window
But I've never really tried that (using .text in a query). You may actually be better off changing the Change event to:Open in new window