473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Why does Parameter dialog box appear?

I am using Access 2007. I have created a table named Birds with one of the fields called In Captivity. This is a Yes/No field. I have also created a report on which I want to print the words "Yes" or "No" dependiong on the value of the In Captivity field. I tried to do this by adding a text box containing the following expression:

=IIf([Birds]![In Captivity] = XXX, "Yes", "No")

where in place of the XXX I have tried Yes "Yes" 1 and even left it blank. When I try to run the report I get a Dialog Box headed Enter Parameter Value.

Why does this appear? More importantly, how can I stop it appearing?

Thanks in advance

Robert
Aug 20 '07 #1
3 1807
Rabbit
12,516 Expert Mod 8TB
I am using Access 2007. I have created a table named Birds with one of the fields called In Captivity. This is a Yes/No field. I have also created a report on which I want to print the words "Yes" or "No" dependiong on the value of the In Captivity field. I tried to do this by adding a text box containing the following expression:

=IIf([Birds]![In Captivity] = XXX, "Yes", "No")

where in place of the XXX I have tried Yes "Yes" 1 and even left it blank. When I try to run the report I get a Dialog Box headed Enter Parameter Value.

Why does this appear? More importantly, how can I stop it appearing?

Thanks in advance

Robert
Access doesn't know what Birds![In Captivity] refers to so it asks you to provide the value. You can't refer to a field in a table in that manner. Your report should be bound to that table so you only need to use [In Captivity].

The value you're looking for is True/False. No quotes.
Aug 20 '07 #2
Many thanks. That fixed it.

Cheers

Robert
Aug 20 '07 #3
Rabbit
12,516 Expert Mod 8TB
Not a problem, good luck.
Aug 20 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: zapazap | last post by:
Dear Snake Charming Gurus, (Was: http://mail.python.org/pipermail/python-list/2004-January/204454.html) First, a thank you to Tim Golden, Thomas Heller, and Mark Hammond for your earlier help...
4
by: Ron Rohrssen | last post by:
I want to show a dialog and when the form (dialog) is closed, return to the calling form. The calling form should then be able to pass the child form to another object with the form as a...
0
by: Ghazanfar Ali | last post by:
Hi All: I am developing Dialog based application. I have placed Microsoft WebBrowser control(IE control) on main Dialog of application. On the IE control, i have drawn an image on the IE control...
2
by: Roger | last post by:
Anyone know how to pass a parameter to a query via a report in Access 2003?
9
by: Andrey Koptyaev | last post by:
What does it mean "fieldRequired.lenght" in php 4.1 ? I know "fieldRequired->lenght" but don't know "fieldRequired.lenght" Please help to understand. Thank you!
1
by: =?Utf-8?B?SmltIFdhbHNo?= | last post by:
VS2005 SP1: CWinFormsDialog is an MFC class that is intended to allow an VC++/MFC - based program to host a C# Windows Forms window as a dialog box. Online help says about the...
2
by: billtubbs | last post by:
Hi I am getting the common problem of the "Enter Parameter Value" dialog box, which pops up every time I execute a query. I built the query using the Expression Builder in Access. If any of my...
2
by: EngineerCrom | last post by:
I am compiling C# code on a 64-bit PC using Windows XP x64 OS for "Any CPU". The compiled version opens the standard print dialog box fine, but on my 64-bit PC (the same PC on which the source was...
4
by: MarkTingson | last post by:
Hi guys, Is there a way to prevent "Enter Parameter Values" message box to pop during VB6 program runtime?I have created a program in VB6 that uses a Crystal report control. When I put a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.