A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

PROBLEM - Report based on query that has criteria based on listbox



 
 
Thread Tools Display Modes
  #1  
Old April 21st, 2010, 08:21 PM posted to microsoft.public.access.reports
SK
external usenet poster
 
Posts: 88
Default PROBLEM - Report based on query that has criteria based on listbox

I'm trying to get a report to load that is based on a criteria which is set
according to the value of a listbox on a form. (all in 2007) When I open
the report (by clicking on button) Access asks for the parmeter [which is the
listbox.value]

The report will run fine if I enter the correct value but I don't want it to
ask.

this is the format of the criteria in the query:
[Forms]![frmMain]![lstPRRListing] The listbox does have a value when the
report is opened and the form is never closed.

Any thoughts on why the query can not see the listbox?
  #2  
Old April 21st, 2010, 08:40 PM posted to microsoft.public.access.reports
John Spencer
external usenet poster
 
Posts: 7,815
Default PROBLEM - Report based on query that has criteria based on listbox

Is the listbox's MultiSelect property set to SIMPLE. If not, that is your
problem.



John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

sk wrote:
I'm trying to get a report to load that is based on a criteria which is set
according to the value of a listbox on a form. (all in 2007) When I open
the report (by clicking on button) Access asks for the parmeter [which is the
listbox.value]

The report will run fine if I enter the correct value but I don't want it to
ask.

this is the format of the criteria in the query:
[Forms]![frmMain]![lstPRRListing] The listbox does have a value when the
report is opened and the form is never closed.

Any thoughts on why the query can not see the listbox?

  #3  
Old April 21st, 2010, 09:37 PM posted to microsoft.public.access.reports
SK
external usenet poster
 
Posts: 88
Default PROBLEM - Report based on query that has criteria based on lis

it is set to NONE. I had it working on a different form with the same
setting. I can not figure out what is different between the two forms.

"John Spencer" wrote:

Is the listbox's MultiSelect property set to SIMPLE. If not, that is your
problem.



John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

sk wrote:
I'm trying to get a report to load that is based on a criteria which is set
according to the value of a listbox on a form. (all in 2007) When I open
the report (by clicking on button) Access asks for the parmeter [which is the
listbox.value]

The report will run fine if I enter the correct value but I don't want it to
ask.

this is the format of the criteria in the query:
[Forms]![frmMain]![lstPRRListing] The listbox does have a value when the
report is opened and the form is never closed.

Any thoughts on why the query can not see the listbox?

.

  #4  
Old April 22nd, 2010, 02:52 PM posted to microsoft.public.access.reports
John Spencer
external usenet poster
 
Posts: 7,815
Default PROBLEM - Report based on query that has criteria based on lis

Whoops. NONE is the correct setting.

Could you show us the query that the report is using (View: SQL then copy and
paste)?

Is it possible that you have misspelled the reference to the listbox.
For instance could it be that
[Forms]![frmMain]![lstPRRListing]
should be
[Forms]![frmMain]![lstPRListing]
(note the dropped double R in lstPRRListing).

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

sk wrote:
it is set to NONE. I had it working on a different form with the same
setting. I can not figure out what is different between the two forms.

"John Spencer" wrote:

Is the listbox's MultiSelect property set to SIMPLE. If not, that is your
problem.



John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

sk wrote:
I'm trying to get a report to load that is based on a criteria which is set
according to the value of a listbox on a form. (all in 2007) When I open
the report (by clicking on button) Access asks for the parmeter [which is the
listbox.value]

The report will run fine if I enter the correct value but I don't want it to
ask.

this is the format of the criteria in the query:
[Forms]![frmMain]![lstPRRListing] The listbox does have a value when the
report is opened and the form is never closed.

Any thoughts on why the query can not see the listbox?

.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.