M
mike
Hi All,
I created two forms. In one of the forms, I created a
command button and when I click on the command button,
the other form will open. What I'm trying to do is,in the
first form, when I click on the command button, it takes
the parameter from the text box and pass the parameter
tothe other form and the other form display the record
base on the parameter. The code below did work, but it is
not what I wanted to do.
Here is the code:
DoCmd.OpenForm "user", , , "[UserName] = Forms!frmForm1!
lstUserName"
With this method, it pops up with a screen asking me to
type in the user name. Is there any way that I can skip
the pop up screen and directly display the record base on
the parameter passed from the first form? How??
Thanks for the help...
mike
I created two forms. In one of the forms, I created a
command button and when I click on the command button,
the other form will open. What I'm trying to do is,in the
first form, when I click on the command button, it takes
the parameter from the text box and pass the parameter
tothe other form and the other form display the record
base on the parameter. The code below did work, but it is
not what I wanted to do.
Here is the code:
DoCmd.OpenForm "user", , , "[UserName] = Forms!frmForm1!
lstUserName"
With this method, it pops up with a screen asking me to
type in the user name. Is there any way that I can skip
the pop up screen and directly display the record base on
the parameter passed from the first form? How??
Thanks for the help...
mike