Passing a textbox value from a form to another

  • Thread starter Thread starter CJA
  • Start date Start date
C

CJA

Hi,

I have a form with a virtual Keyboard, made with buttons and a textbox with
the typed text.
In another form, when i do double click in a field opens the "Virtual
Keyboard", the user type the text and i want to pass this value to the
original form field. How can i do this procedure?

This application will run in a touchscreen notebook, and almost all the text
field wil use the "Virtual Keyboard"

Thanks

CJA
 
in the code behind the virtual keyboard form:

dimension a module level variable to keep track of what control you are
in (do this at the top of the code, after the Option statement(s),
before any procedures:

dim ctl as control

in the form Open event, the ActiveControl will be on the form where you
are coming from since the data has not yet been loaded:

set ctl = screen.ActiveControl

to update the control where you came from:

ctl = me.controlname
WHERE controlname is the name of the control with the virtual keyboard text

then close:

DoCmd.Close acForm, me.name

~~~~~~~~~~~

you also want to check to make sure that controlname has data before you
assign it ...

Warm Regards,
Crystal

*
(: have an awesome day :)
*
 
Back
Top