M
Mark Mesarch
I had a question on here about trying to creat a drop down
menu (list box) for a query used for a form or a report
and John Vinson gave me the answer of creating an unbound
list on a unbound form. Then using the following code in
the criteria of the query.
=Forms!frmname!fieldname
Then on the unbound form creat a commond button that
opened the form or report that used the query.
The idea seems to work but I cannot get it to actually
function. His last message asked if I was using the
fieldname as a lookup in my original table. And I am.
Basically I have a two table database listing citations of
publications. TABLE A is has 3 fields: a publication id
(autonumber), a publication full name and a publication
abbreviation. TABLE B has numerous fields about articles
in the publications such as Title, Authors, Page Numbers
also a field that is a look-up of the Publication Full
Name from Table A. Actually the Publication ID is being
stored in Table B...at least I think that is what is
happening.
I want to have list box query the user for a publication
name and then return all the articles that come from that
publications. I could use a regular parameter query but
many publications have the same words in their titles (
e.g. Agricultural Meteorology ...Agriculture and Forest
Meteorology) I don't want the user to have to type in the
full name.
John asked for the SQL of the query and the row source
from the form. See Below
When I run this and get the resulting form I get now
matches...its like the query is not either 1) getting the
right information to match up the information in the query
or its not even getting anything.
Any body have any ideas.
Thanks
Here is the SQL
SELECT tblpublicationlist.Refnum,
tblpublicationlist.author, tblpublicationlist.journalid
FROM tblpublicationlist
WHERE (((tblpublicationlist.journalid)=[Forms]!
[frmselectpub]![journalid]));
Row Source
SELECT [tbljournalname].[journalid], [tbljournalname].
[journalfullname] FROM tbljournalname;
Bound Column Properties
1
menu (list box) for a query used for a form or a report
and John Vinson gave me the answer of creating an unbound
list on a unbound form. Then using the following code in
the criteria of the query.
=Forms!frmname!fieldname
Then on the unbound form creat a commond button that
opened the form or report that used the query.
The idea seems to work but I cannot get it to actually
function. His last message asked if I was using the
fieldname as a lookup in my original table. And I am.
Basically I have a two table database listing citations of
publications. TABLE A is has 3 fields: a publication id
(autonumber), a publication full name and a publication
abbreviation. TABLE B has numerous fields about articles
in the publications such as Title, Authors, Page Numbers
also a field that is a look-up of the Publication Full
Name from Table A. Actually the Publication ID is being
stored in Table B...at least I think that is what is
happening.
I want to have list box query the user for a publication
name and then return all the articles that come from that
publications. I could use a regular parameter query but
many publications have the same words in their titles (
e.g. Agricultural Meteorology ...Agriculture and Forest
Meteorology) I don't want the user to have to type in the
full name.
John asked for the SQL of the query and the row source
from the form. See Below
When I run this and get the resulting form I get now
matches...its like the query is not either 1) getting the
right information to match up the information in the query
or its not even getting anything.
Any body have any ideas.
Thanks
Here is the SQL
SELECT tblpublicationlist.Refnum,
tblpublicationlist.author, tblpublicationlist.journalid
FROM tblpublicationlist
WHERE (((tblpublicationlist.journalid)=[Forms]!
[frmselectpub]![journalid]));
Row Source
SELECT [tbljournalname].[journalid], [tbljournalname].
[journalfullname] FROM tbljournalname;
Bound Column Properties
1