View Single Post
  #1  
Old August 19th, 2004, 04:08 PM
Neil
external usenet poster
 
Posts: n/a
Default How to pass a value to a popup.... again

I opened a popup form and then opened a dialog box from this popup. I
needed to enter information into a text field on the dialog box and
then pass it back to another textfield in the popup. I have not been
able to do this.

I tried:

Setting Control Rowsource Property on the Popup like this:

=Forms![frmDialogBoxName]!txtFieldDialog

That doesn't work. The value never passes from the DialogBox to the
Popup.


Next I tried:
Creating a global variable and trying to set the control rowsource
equal to that and that didn't work.

Now I am trying to pass the handle like this:

DoCmd.OpenForm "frmDialogBox", , , , , acDialog, Me.hwnd

The only problem is how can I use this (the OpensArgs property) to
reference the popup and pass a value back to it. I am a newbie to
Access VBA and I know I am not understanding something here but I just
don't get it.

Why won't a txtBox value pass from a form to a popup. I can't find a
way to "name" or call the popup from the dialog because using the name
frmPopup doesn't work in the Dialog Box.


Thanks.