473,471 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Multiple Option Groups, only reporting when a specific value.

17 New Member
I am attempting to create a report off of 6 option groups. Each option group is a Y or N response, populating a 1 or 2 in the tables.
i want to report the number a word on the report, I chose the nested IIF statement below and placed this in my query, but now it opens a dialog box for all except the last choice, is there a way to bypass the dialog boxes or at least not prompt the user with them? There is no values in the table for the ones that it is prompting for, which is correct in this case.


Returns: IIf([Returns_media_bulk_9_trk]=1,"Reel",""IIf([Returns_media_bulk_3480]=1,"3480",IIf([Returns_media_bulk_3490]=1,"3490",IIf([Returns_media_bulk_disk]=1,[“Disk”],IIf([Returns_media_bulk_ftp]=1,[“FTP”],IIf([Returns_media_bulk_EDI]=1,[“EDI”],IIf([Returns_media_bulk_cdr]=1,"")))))))

Thanks.
Jan 24 '08 #1
2 2002
nico5038
3,080 Recognized Expert Specialist
I am attempting to create a report off of 6 option groups. Each option group is a Y or N response, populating a 1 or 2 in the tables.
i want to report the number a word on the report, I chose the nested IIF statement below and placed this in my query, but now it opens a dialog box for all except the last choice, is there a way to bypass the dialog boxes or at least not prompt the user with them? There is no values in the table for the ones that it is prompting for, which is correct in this case.


Returns: IIf([Returns_media_bulk_9_trk]=1,"Reel",""IIf([Returns_media_bulk_3480]=1,"3480",IIf([Returns_media_bulk_3490]=1,"3490",IIf([Returns_media_bulk_disk]=1,[“Disk”],IIf([Returns_media_bulk_ftp]=1,[“FTP”],IIf([Returns_media_bulk_EDI]=1,[“EDI”],IIf([Returns_media_bulk_cdr]=1,"")))))))

Thanks.
Loks like your table isn't properly "normalized", but to solve the problem you could use the NZ function to neutralize the Nulls like:
Expand|Select|Wrap|Line Numbers
  1. Returns: IIf(NZ([Returns_media_bulk_9_trk])=1,"Reel",""IIf(NZ([Returns_media_bulk_3480])=1,"3480",IIf(NZ([Returns_media_bulk_3490])=1,"3490",IIf(NZ([Returns_media_bulk_disk])=1,“Disk”,IIf(NZ([Returns_media_bulk_ftp])=1,“FTP”,IIf(NZ([Returns_media_bulk_EDI])=1,“EDI”,IIf(NZ([Returns_media_bulk_cdr])=1,"")))))))
  2.  
Also some [ and ] are removed as they let Access think there are variables...

Nic;o)
Jan 28 '08 #2
jaxjagfan
254 Recognized Expert Contributor
I am attempting to create a report off of 6 option groups. Each option group is a Y or N response, populating a 1 or 2 in the tables.
i want to report the number a word on the report, I chose the nested IIF statement below and placed this in my query, but now it opens a dialog box for all except the last choice, is there a way to bypass the dialog boxes or at least not prompt the user with them? There is no values in the table for the ones that it is prompting for, which is correct in this case.


Returns: IIf([Returns_media_bulk_9_trk]=1,"Reel",""IIf([Returns_media_bulk_3480]=1,"3480",IIf([Returns_media_bulk_3490]=1,"3490",IIf([Returns_media_bulk_disk]=1,[“Disk”],IIf([Returns_media_bulk_ftp]=1,[“FTP”],IIf([Returns_media_bulk_EDI]=1,[“EDI”],IIf([Returns_media_bulk_cdr]=1,"")))))))

Thanks.
This gets back to the normalizing thing mentioned.

Would it be possible to have a "MediaType" table within your database?
MediaID, Media, Qty
1, 9_trk, Bulk
2, 3490, Bulk
3, Disk, Bulk
4, FTP, Bulk
5, EDI, Bulk
6, CDR, Bulk

You could have a combobox to drop down and select MediaID.

For a customer order, you would need an order table and order Items table.

It may seem like a lot of work initially (it's really not) but take a look at the data and what you are doing.

FYI - Yes/No, True/False are known as Boolean values. In their numeric form they are stored in tables as -1 for yes/true and 0 as no/false unless you have customized the field for other values.
Jan 28 '08 #3

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

Similar topics

2
by: RJ | last post by:
We currently send product releases to our customers, and often have to include scripts that need to be ran on the Oracle databases (also do it for SqlServer customers, but we use a different set of...
1
by: 234 | last post by:
Please help. I'm first start to use javascript but I don't know how to develop the captioned. e.g. <select name="select" onChange="change(this.options.selectedIndex)"> <option...
32
by: tshad | last post by:
Can you do a search for more that one string in another string? Something like: someString.IndexOf("something1","something2","something3",0) or would you have to do something like: if...
0
by: rayone | last post by:
Hi folks. I need advice. 2 options, which do you think is the better option to display/retrieve/report on the data. Keep in mind reporting (Crystal), SQL Performance, VB Code, usability,...
2
by: Marcus | last post by:
I have seen many posts of people with the same problem as me (attached below), but I have yet to see any solutions posted. Has anyone figured out how to deploy an Asp.net web site to the webserver...
2
by: murraymiken | last post by:
I'm looking to have multiple multiple-select-boxes on a page. But I can only get the contents from the last selected value within a box, via PHP. I've tried numerous methods. What am I doing...
1
by: kiran | last post by:
hi, iam creating a multiselect menu in javascript the code for that is as follows "<select id=\"groups\" name=\"groups\" size=\"4\" multiple>" "<option value=x>xyz</option>" .. .. .. .....
3
by: scott | last post by:
Hello all, I am ripping my hair out over this and maybe someone could help. I have a site that has groups and subgroups of those groups that all have int id's. I am trying to have a...
58
by: bonneylake | last post by:
Hey Everyone, Well recently i been inserting multiple fields for a section in my form called "serial". Well now i am trying to insert multiple fields for the not only the serial section but also...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.