Generic data entry form

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

I need to design a form which can accept a value from the calling routine.
After user has edited the value and pressed OK, the form should return the
edited value back to the calling routine. How do I setup such a form which
is fairly generic and can be called form various areas in the program?

Thanks

Regards
 
What's the goal here, John?

If you just need more space to do the editing, you can just press Shift+F2
in any field to open the zoom box. When you close it, it writes the edits
back to the field.

It is possible to do that with your form, but the zoom box is so simple to
implement.
 
Hi

The field is not visible on the main form therefore needs to be edited in a
separate form once user presses a button on the main form to open the second
form to edit the field.

Thanks

Regards
 
Okay, you will need a form with an unbound text box where the user enters
the data, and a variable that contains a reference to the control you want
to stick the data into after editing.

There's an example of doing that kind of thing here:
Popup Calendar
at:
http://allenbrowne.com/ser-51.html

It uses a public variable that refers to the target text box, and then opens
the form in dialog mode. This form has Ok and Cancel buttons, and if you
click Ok it assigns the value (in this case a date) to the target text box.
 

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

Back
Top