473,408 Members | 1,861 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,408 software developers and data experts.

Query combobox question

I have a user table with a True/False field called IC.

I have a form - which is "Yes" / "No".

If the user selects Yes on the form, I want only those ICs records
that are True.

If they select No. I want all IC records, regardless of True or False

I tried something like:

((IIf([Forms]![frmUnderwriterAssignmentSystem]![cboInnerCircle]="Yes",
[InnerCircle]=True,True))=True));

but obviously that doesnt work :)

Thanks,
Brian

Aug 20 '07 #1
1 1227
ARC
Seems like "Yes" would be a literal since it's in quotes. You might try
-1 instead of the "Yes"

Another way would be to use the form's filter property. Something like this
in the after update prop of the yes/no field:

If me!cboInnerCircle = -1 then
me.filter = "InnerCircle = -1"
me.filteron = true
else
me.filteron = false
endif


"BerkshireGuy" <be*************************@yahoo.comwrote in message
news:11**********************@z24g2000prh.googlegr oups.com...
>I have a user table with a True/False field called IC.

I have a form - which is "Yes" / "No".

If the user selects Yes on the form, I want only those ICs records
that are True.

If they select No. I want all IC records, regardless of True or False

I tried something like:

((IIf([Forms]![frmUnderwriterAssignmentSystem]![cboInnerCircle]="Yes",
[InnerCircle]=True,True))=True));

but obviously that doesnt work :)

Thanks,
Brian

Aug 20 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Georges Heinesch | last post by:
I discovered a weird behaviour regarding a query and a combobox based on that query. 3 tables: Food: Food_ID number (autonumber - primary key) Number number Fruit_ID combobox
3
by: Steve | last post by:
Form FrmRestock's recordsource is QryFrmRestock. The TransactionDate field's criteria is set ats: Forms!FrmRestock!LastXDays. LastXDays on the form is a combobox where the selections are 30, 60...
2
by: Ellen Manning | last post by:
Using A2K. In my table I have the field "Grant" which can have a value or be null. I have a query that counts the number of records and has a Where clause on the Grant field. The query won't...
1
by: Seth Delaney | last post by:
I have a form with a combobox and a list box. The combobox will list records (names of queries) that are entered in a table called tblListName. I have the combobox set to get its values from this...
3
by: Ray Holtz | last post by:
Access 2003 (2000 file format) question: When I run a form, it opens with only a combo box and a button to execute a query based on the criteria tha is selected in the combobox. Then I need...
4
by: Jim | last post by:
Hi, I have some basic SQL experience (more programming and EXCEL experience) and I am having a hard time generating a particular query. My table is a historical database with columns...
6
by: JonnyRotten | last post by:
I have two tables The first has a ID (key) field and enteries for Name The second has a ID field (tied to the first) and then 6 fields for activities. Called Activity1, Activity2, etc etc I...
12
by: Tom | last post by:
Hello, I have a database of employee data in access and I am trying to create a form with combo boxes for criteria (ex. gender, office, position, etc.) that let the user select criteria from...
22
by: Stan | last post by:
I am working with Access 2003 on a computer running XP. I am new at using Access. I have a Db with a date field stored as mm/dd/yyyy. I need a Query that will prompt for the month, ie. 6 for...
3
by: Richard Hollenbeck | last post by:
I am very sorry about the (almost) re-post, but you will see that my first question wasn't very clear; I have another question I posted this morning called, "in DAO: Run time error 3061 Too few...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...

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.