PC Review


Reply
Thread Tools Rate Thread

WHERE CONDITION IN REPORT

 
 
Jess
Guest
Posts: n/a
 
      4th Feb 2010
I have a report which I open from a form with the openreport command. I
execute the report with a where condition whose string is as follows:

"FERC_status <> 'L'"

FERC_status is a field on the table my report is based on.

Everytime the openreport is invoked Access asks me the parameter value for
FERC_status. What is going on here? I already supplied the value for
FERC_status (<> "L")

Thanks for your help


 
Reply With Quote
 
 
 
 
Marshall Barton
Guest
Posts: n/a
 
      4th Feb 2010
Jess wrote:

>I have a report which I open from a form with the openreport command. I
>execute the report with a where condition whose string is as follows:
>
>"FERC_status <> 'L'"
>
>FERC_status is a field on the table my report is based on.
>
>Everytime the openreport is invoked Access asks me the parameter value for
>FERC_status. What is going on here? I already supplied the value for
>FERC_status (<> "L")



If you are prompted for something in a query or report, it
means that Access can not find it in the query's table(s) or
in the report's record source table/query. Typically, this
is because the name is misspelled or the field was not
included in the report's record source query's field list.

--
Marsh
MVP [MS Access]
 
Reply With Quote
 
Jeanette Cunningham
Guest
Posts: n/a
 
      5th Feb 2010
Check that you have the correct spelling for the field FERC_status.
Check that the field FERC_status is really in the query the report is based
on.
If the above doesn't help, close the report and open the query it is based
on, access will probably give the same error message.
Post the full line of code that opens the report.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


"Jess" <(E-Mail Removed)> wrote in message
news:96F3A934-8AC1-4EEF-B7BB-(E-Mail Removed)...
>I have a report which I open from a form with the openreport command. I
> execute the report with a where condition whose string is as follows:
>
> "FERC_status <> 'L'"
>
> FERC_status is a field on the table my report is based on.
>
> Everytime the openreport is invoked Access asks me the parameter value for
> FERC_status. What is going on here? I already supplied the value for
> FERC_status (<> "L")
>
> Thanks for your help
>
>



 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      5th Feb 2010
On Thu, 4 Feb 2010 13:22:01 -0800, Jess <(E-Mail Removed)>
wrote:

>I have a report which I open from a form with the openreport command. I
>execute the report with a where condition whose string is as follows:
>
>"FERC_status <> 'L'"
>
>FERC_status is a field on the table my report is based on.
>
>Everytime the openreport is invoked Access asks me the parameter value for
>FERC_status. What is going on here? I already supplied the value for
>FERC_status (<> "L")
>
>Thanks for your help
>


This means that (despite what you think!) that FERC_Status is *not* in the
form's Recordsource. Is that recordsource the table? or a query based on the
table? If a query, is FERC_Status included?

This could also be a spelling issue - if the field is actually named
"FERC Status" then (under some circumstances) Access will show it to you with
an underscore replacing the blank but the name still must be referenced with a
blank:

"[FERC Status] <> 'L'"

--

John W. Vinson [MVP]
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Report with condition SylvieB Microsoft Access Reports 5 4th May 2009 08:03 PM
Report Where Condition António Castro Caldas Microsoft Access VBA Modules 3 1st Jul 2005 06:05 PM
re: open a report with a condition on the sub report Liat Microsoft Access Reports 0 3rd Oct 2004 11:43 AM
re: open a report with a condition on the sub report Fons Ponsioen Microsoft Access Reports 1 3rd Oct 2004 11:43 AM
open a report with a condition on the sub report =?Utf-8?B?TGlhdA==?= Microsoft Access Reports 0 22nd Sep 2004 11:15 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:29 AM.