Subform query

P

PeterM

I'm running Access 2003.

I have a form called FormA. Withing FormA is a subform SubFormB. SubFormB
is a continuous form. SubformB has record selectors turned on. I wrote a
query for SubFormB that uses a membername field on SubFormB as the key for
the following query.

Select * from tableX where
tableX.person_name = forms!FormA!SubFormB!membername

The query above is not working...it's prompting me for a variable called
"forms!FormA!SubFormB!membername"....

Any help would be appreciated!
 
K

KARL DEWEY

If I read you correctly you wrote a query used as record source for SubFormB
that uses a field from SubFormB for criteria.

Until the query runs there is no data in SubFormB for the query criteria.
 

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

Similar Threads

Calling another form 2
subform 1
Finding Totals from two diff date ranges 5
Calculating two different totals from a sub form 0
subforms 1
A problem reading a file 2
subform calls 1
Form/Subform Refresh 3

Top