Hi,
I have a filtered form with a textbox and command button.
The Control's Source of the textbox is set to:
=Count([IDAutos])
Which count the filtered records on the form.
The button's property: Visible is set to "No"
All I want is when the form open and filter the records, the button visibility change in based on the results of the value of the text box.
Example:
I tried in After Update Event of the textbox the normal code for this:
Tried this code in OnCurrent Event of the form and OnFilter and OnApplyFilter but nothing work.
I suspect is related to the auto calculated value of the textbox, but really, I don't know. And if this is the case, how to proceed?
Any help?
Thank in advance and forgive me for my awful English (is from Google Translator)
I have a filtered form with a textbox and command button.
The Control's Source of the textbox is set to:
=Count([IDAutos])
Which count the filtered records on the form.
The button's property: Visible is set to "No"
All I want is when the form open and filter the records, the button visibility change in based on the results of the value of the text box.
Example:
Code:
If textbox value is > 1 Then button.visible = True If textbox value is = 1 Or <1 Or "Null" Then button.visible = False
Code:
If Me.textbox > 1 Then Me.button.Visible = True Else Me.textbox =1 Or Me.textbox <1 Me.button.Visible = False
I suspect is related to the auto calculated value of the textbox, but really, I don't know. And if this is the case, how to proceed?
Any help?
Thank in advance and forgive me for my awful English (is from Google Translator)
Comment