MasterRacker
New member
Let's say I have a form with a textbox on it and an unrelated module that has a public variable declared in it. The variable is a counter and I would like to display it as it changes. I could update the status bar but I would like to do it on the form without the module knowing anything about any specific form or control.
Is there a way to bind a control a variable so it would update as the variable changes? I created a one line function that returns the counter and set the textbox data source to the function ( =DisplayCount() ) This display the initial value of the variable but does not update when the variable changes.
I'm thinking I have to create a event handler based on the change of the counter and pick it up in the form somehow, but at this point I'm clueless (at least trying to do this in VBA.)
_____
Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]
Is there a way to bind a control a variable so it would update as the variable changes? I created a one line function that returns the counter and set the textbox data source to the function ( =DisplayCount() ) This display the initial value of the variable but does not update when the variable changes.
I'm thinking I have to create a event handler based on the change of the counter and pick it up in the form somehow, but at this point I'm clueless (at least trying to do this in VBA.)
_____
Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]