Linking modal form

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top