I have a form that I have a yes/no checkbox on it.
I would like to run a query based on the answer of this checkbox.
If the answer to the form checkbox is yes, I want to find yes items in
the query. If the answer to the checkbox is no I want to find both yes
and no items. I've tried several sinarios and have not had success.
Anyone have any ideas? I'm sure this has to be simple and I'm just not
thinking properly.
Here is on format I was trying -
IIf([Forms]![FORMSEARCH]![Individuals]=Yes,Yes,No Or Yes)
Thanks 4 6304
mar10 wrote: I have a form that I have a yes/no checkbox on it.
I would like to run a query based on the answer of this checkbox.
If the answer to the form checkbox is yes, I want to find yes items in the query. If the answer to the checkbox is no I want to find both yes and no items. I've tried several sinarios and have not had success. Anyone have any ideas? I'm sure this has to be simple and I'm just not thinking properly.
Here is on format I was trying - IIf([Forms]![FORMSEARCH]![Individuals]=Yes,Yes,No Or Yes)
Thanks
Maybe:
SELECT Data FROM tblMyData WHERE
IIf([Forms]![FORMSEARCH]![Individuals].Value=Yes, MyYNField = Yes,
(MyYNField = No Or MyYNField = Yes));
James A. Fortune
On 25 Sep 2005 14:05:28 -0700, mar10 wrote: I have a form that I have a yes/no checkbox on it.
I would like to run a query based on the answer of this checkbox.
If the answer to the form checkbox is yes, I want to find yes items in the query. If the answer to the checkbox is no I want to find both yes and no items. I've tried several sinarios and have not had success. Anyone have any ideas? I'm sure this has to be simple and I'm just not thinking properly.
Here is on format I was trying - IIf([Forms]![FORMSEARCH]![Individuals]=Yes,Yes,No Or Yes)
Thanks
Like IIf([forms]![FormSearch]![Individuals]=-1,-1,"*")
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
fredg wrote: Like IIf([forms]![FormSearch]![Individuals]=-1,-1,"*")
Très élégant!
James A. Fortune ji********@comp umarc.com wrote: fredg wrote:
Like IIf([forms]![FormSearch]![Individuals]=-1,-1,"*")
Très élégant!
James A. Fortune
IN (Nz(Forms!FormS earch!Individua ls), -1)
James A. Fortune This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: MX1 |
last post by:
I have a query written in MS Access that has a few calculated fields. Is it
possible to refer to that query in a form field. I'd like the form field to
show the sum of one of the columns from the query I've written. I've tried
to put the following in the form field's control source property but I'm
getting an error. Query1 is the name of the query and CalculatedTotal is
the calc'd field column I'm trying to get a total for in the form...
|
by: John Baker |
last post by:
HI:
I have a situation where I wish to enter a value in an unbound field on a form and then
change the same field in each record on the form so that it reflects the value entered.
THe form is suppored by an updatable query (linked to a table). I would rather not use a
query approach because it will result in a need for a new form and will create its own
complications (although this could be done) I would like to make the change so that it...
|
by: j.mandala |
last post by:
I have a memo field in an appointment application that stores session
notes for group psychotherapy sessions. Each attendee of the group has
an appointment record. I want to be able to write a general group note
on a form, click a button, and have that note stored in the memo field
for each person's appointment record. I created a form with an unbound
field called GroupNote. I then run an update query that updates the
note field for all...
|
by: Old Timer |
last post by:
I wish to type in a number in my "Code" field, for instance 1060, I
then wish the number 1060 to trigger an event that will fill in the
next field (township field) For instance, 1060 brings up and fills in
name "Spencer Tp". I have 30 townships,2 cities, 6 villages and
identifiers consisting 38 separate code numbers assigned by our county
government to identify each township,city and village.
I ran a "Make Table Query", have created a...
|
by: John young |
last post by:
I have been looking for an answer to a problem and have found this
group and hope you can assist .
I have been re doing a data base I have made for a car club I am with
and have been trying to make a query that selects from a table as
desribed below ..
I have a table (Volunteer) that has a member field (memnumber)
and a number of fields that are headed in various categories and are
yes/no formated
| |
by: Lyn |
last post by:
Hi,
I am working on a genealogy form. The only table (so far) lists everybody
in the family, one record per person. Each record has an autonum ID.
The parent form (frmMainForm) displays the data in each record, which
includes the ID of the father and the mother (who also have records in the
table). One record per form.
I have a Tab Control in the form, and in one of the tabs I have a subform
(sfmSiblings) in which I wish to list...
|
by: ND |
last post by:
I need to create a separate field from 4 fields, "street address", "city",
"State" and "zip code". For example,
Street address - 100 Forest Street
City - Seattle
State - WA
Zip - 05555
Would become:
|
by: MLH |
last post by:
I have an A97 query (qryVehiclesNowners2) that has a table
field in it named . Depending on the selections made
in a number of criteria choices on a form, a field on the form
will have string values in it like...
Between #12/1/2004# And #12/31/2004# - or -
>= #6/10/2005# - or -
Between #6/1/2005# And #6/30/2005#
I want to use them as criteria for the query.
|
by: sellcraig |
last post by:
Microsoft access
2 tables
table "data main" contains a field called "code"
table "ddw1" is created from a make table query of "data main"
Goal-
the data in "code" field in needs to be inserted into a standard web
address in the table (the filed name is link) in ddw1
Example address ---
|
by: Ecohouse |
last post by:
I have a main form with two subforms. The first subform has the child
link to the main form identity key.
subform1 - Master Field: SK
Child Field: TrainingMasterSK
The second subform has a master-child link to the first subform.
subform2 - Master Field: subTrainingModule.Form!TrainingModuleTopicSK
Child Field: TrainingModuleTopicSK
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |