melissa_may1
Registered User.
- Local time
- Today, 07:42
- Joined
- Nov 29, 2011
- Messages
- 41
Hi All,
I'm using a split form to display client information. I have an icon for Female clients and Male clients, that I change in code to match the client. The code to change the icon is in the AfterUpdate event for the male/female checkbox
I have custom navigation buttons, and when I use those, the AfterUpdate event fires, and the icon changes.
However, when I change records using the built-in record nav buttons at the bottom of the form, the icon does not change.
Also, if I click on a row in the spreasheet part of the form, the icon does not change.
In order to fix this, I've tried to add another event, but I can't seem to find the one that will work.
On the Form I tried OnDataChange, AfterRender, OnQuery, OnCurrent, AfterUpdate, BeforeUpdate, OnDirty, none of which would work.
Then I tried to attach another event to one of the other controls that changes, such as the client ID. I tried: AfterUpdate, BeforeUpdate, OnDirty, OnChange, and again, none work.
The only way I could find was to set a timer on the form, and use the OnTimer event to update it every second. But that makes the form flicker each time, and is a waste of resources.
Any ideas on what event I can watch for whenever the built-in navigation buttons are clicked, or when a row in the spreadsheet is clicked?
Also, why is there no event when the information on the form controls change, regardless of what caused the change?
Thanks!
I'm using a split form to display client information. I have an icon for Female clients and Male clients, that I change in code to match the client. The code to change the icon is in the AfterUpdate event for the male/female checkbox
I have custom navigation buttons, and when I use those, the AfterUpdate event fires, and the icon changes.
However, when I change records using the built-in record nav buttons at the bottom of the form, the icon does not change.
Also, if I click on a row in the spreasheet part of the form, the icon does not change.
In order to fix this, I've tried to add another event, but I can't seem to find the one that will work.
On the Form I tried OnDataChange, AfterRender, OnQuery, OnCurrent, AfterUpdate, BeforeUpdate, OnDirty, none of which would work.
Then I tried to attach another event to one of the other controls that changes, such as the client ID. I tried: AfterUpdate, BeforeUpdate, OnDirty, OnChange, and again, none work.
The only way I could find was to set a timer on the form, and use the OnTimer event to update it every second. But that makes the form flicker each time, and is a waste of resources.
Any ideas on what event I can watch for whenever the built-in navigation buttons are clicked, or when a row in the spreadsheet is clicked?
Also, why is there no event when the information on the form controls change, regardless of what caused the change?
Thanks!