events - Gray out a form row's (detail's) button conditionally with VBA code -


I have a standard form in MS-Access that lists a set of orders, and the order number , Customer etc. Fields + Notes and a button to see attached document files.

On request from our customer, let us select two other tables from two questions (one should check or uncheck the button btnAnm (depending on the calculation) The check field is empty and is a check).

I have tried btnAnm_BeforeUpdate (...) and BTNANmbrereenderer (...) and put breakpoints in all, but none of them Not triggered if I use the Orderner control instead of btnAnm , then there is only one.

Set me every " me. " (line), and set properties of the control of the row in that sub.

What do I do? I have seen the help file and searched here.

* Edit: So I want to do something that was not done "to do this"? To wit. Incident incidents have not started in the details as an alternative, do I base the value of a checkbox on each line on a query based on the 'Orderner' field of the existing row and the result of the blank number from another table and the blank field check Can i do

Am I based on the list in such a query, or can I tie additional checkbox fields in a query?

A description of how to do it (a COUNT and a coalition "is not empty" Yes / No for checkbox value) will be completely acceptable, I think! :) *

You can not do much in an ongoing form with an unbound control, whatever They only apply to the current record, you can use a bound control with a click event so that it can work as a button.

Possibly related documents are the reference to the order number that appears on your form, which means that you can create a control, we call it CountOrders, such as a ControlSource: < > = DCount ("OrderID", "QueryName", "OrderID =" & [OrderID])

Controls can be hidden, or you can use the text box You can set it to correct or incorrect return, you can also use it for conditional formatting, but the duration From somewhere, the command not to buttons. Expression is [CounterOrders]> 0

You can also hide the content and add one click event, which will replace the command button Works conditional formatting will allow you to enable or disable textboxes.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -