S
swas
Hi,
I have an Access form that uses a comctrl to communicate serially via RS232
to a coin counting machine. The form can control the counter to start / stop
etc... plus read the count into a field on the main form.
This works fine, and I am presently re-doing some forms. I want the counter
form to float as a modal form on screen, with the parent form that opened it
receiving the count data.
This is where I am not sure as to the best way to control. Other data needs
entering directly into the main form, plus the count data from the interface
form. Further to this I need to monitor keypress events to trigger special
control keystrokes to the counter (Start / stop etc...), so this needs to be
monitored on the interface form plus the parent form depending on which has
focus.
My previous coding efforts have single use code catching all of this (Events
in the main form, plus interface form, messy), but I'm trying to style my
code more around generic solutions. Can anyone help as to how best
implemented here? I could use openarg settings to setup linking, but still
need to catch some events from both forms.
Thoughts appreciated.
swas
I have an Access form that uses a comctrl to communicate serially via RS232
to a coin counting machine. The form can control the counter to start / stop
etc... plus read the count into a field on the main form.
This works fine, and I am presently re-doing some forms. I want the counter
form to float as a modal form on screen, with the parent form that opened it
receiving the count data.
This is where I am not sure as to the best way to control. Other data needs
entering directly into the main form, plus the count data from the interface
form. Further to this I need to monitor keypress events to trigger special
control keystrokes to the counter (Start / stop etc...), so this needs to be
monitored on the interface form plus the parent form depending on which has
focus.
My previous coding efforts have single use code catching all of this (Events
in the main form, plus interface form, messy), but I'm trying to style my
code more around generic solutions. Can anyone help as to how best
implemented here? I could use openarg settings to setup linking, but still
need to catch some events from both forms.
Thoughts appreciated.
swas