Popup form works in A2K but not A-2003

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an application that I created in A2K that I have now deployed to a
user with A-2003. Every thing seems fine, with one problem and I hoping
someone can help with that. The application has a subform with several text
controls that are bound to memo fields. I have created several popup forms
to emulate the shift f2 "Zoom" feature , with only one large textbox control
on each, for the user to more easily view/edit the data in the small text
controls on the subform. The user doubleclicks the control on the subform
and the popup displays the data, and data entered is immediately placed in
the control on the subform. It works fine on the A2K machines, but on the
A-2003 the popup forms open, but the data in the text control on the suform
does not display on the popup, and data entered on the popup does not display
on the text control on the subform.

Both the Sub form and the popup forms are bound to tblSpecs, and the
controls on the popup forms are bound to the same fields in tblSpecs as the
appropriate control are on the subform. Requerying does not help, it's as if
the data is no longer connected to the popup forms.

Can anyone give me a clue as to why this is happening?

Thanks!

Gary in Michigan, USA
 
If it works in A2000 but not in A2003, then my first guess would be the way
you are referring to the subform. A2003 sometimes needs the ".Form" bit that
A2000 understands is implied, e.g.:
Forms!Form1.Sub1.Form!Text1
That explicitly refers to the form in the subform control. More info in:
Referring to Controls on a Subform
at:
http://allenbrowne.com/casu-04.html

For this kind of form, I would personally make the zoom-form unbound, i.e.
load it with the value of the selected field, and then write the value back
to the control on the original form in your Ok button's Click event, without
binding it to any field. That's how the built-in Zoom box works, and it
avoids some concurrency issues (as well as making it more flexible.)
 
Back
Top