K
kev100 via AccessMonster.com
I've got a form which displays data in datasheet format.
One of the fields (cells) has an On-click event set.
It opens a query. That query uses data from that clicked cell in that data
sheet as a parameter query input.
It works GREAT when that Form is run by itself.
However...when I imbedded that query into another form. It displays its data
fine....however...when I click on the cell...the query will run...but it is
prompting me for that cell's value. That value is, for some reason, not
being passed through to the query.
Here's how it's set up:
A form called "NameForm" displays 2 fields (cells) First Name , Last Name
When I click on Last Name, a query will run (via an onclick event) which
displays the Phone number and Address of that person.
The criteria in the query is: [Forms]![NameForm]![LastName]
Running NameForm and clicking works GREAT.
However......
When I embed NameForm into another form called "MasterForm"...........it
displays the First / Last Name lists fine....but when the user clicks on the
Last Name cell they are Prompted to enter:
[Forms]![NameForm]![LastName]
Do I need to add some sort of specifier to the above since the form in now
embedded in another?
Thanks very much.
One of the fields (cells) has an On-click event set.
It opens a query. That query uses data from that clicked cell in that data
sheet as a parameter query input.
It works GREAT when that Form is run by itself.
However...when I imbedded that query into another form. It displays its data
fine....however...when I click on the cell...the query will run...but it is
prompting me for that cell's value. That value is, for some reason, not
being passed through to the query.
Here's how it's set up:
A form called "NameForm" displays 2 fields (cells) First Name , Last Name
When I click on Last Name, a query will run (via an onclick event) which
displays the Phone number and Address of that person.
The criteria in the query is: [Forms]![NameForm]![LastName]
Running NameForm and clicking works GREAT.
However......
When I embed NameForm into another form called "MasterForm"...........it
displays the First / Last Name lists fine....but when the user clicks on the
Last Name cell they are Prompted to enter:
[Forms]![NameForm]![LastName]
Do I need to add some sort of specifier to the above since the form in now
embedded in another?
Thanks very much.