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

Report List Box grouping

tuxalot
200 100+
I have a report that shows employee injury data (body part injured & date) presented in List Boxes placed around an image of a human figure. TblBodyPart contains an autonumber column "BodyID" and a body part i.e. "Shoulder". QrySafetyFigure pulls data for a given date range. The List Boxes on the report have a row source similar to:

SELECT [QrySafetyFigure].[EDepartment], [QrySafetyFigure].[DateOfInjury] FROM QrySafetyFigure WHERE ((([QrySafetyFigure].[BodyID])=37));

which works fine. Question: is it possible to group body parts i.e. "left" shoulder (BodyID=36) and "Right" shoulder (BodyID=37) in the same List Box?
Mar 6 '09 #1
2 1509
DonRayner
489 Expert 256MB
@tuxalot
You can OR your WHERE statement to select multiple BodyID's

Expand|Select|Wrap|Line Numbers
  1. SELECT [QrySafetyFigure].[EDepartment], [QrySafetyFigure].[DateOfInjury] FROM QrySafetyFigure WHERE ((([QrySafetyFigure].[BodyID])=37 OR ([QrySafetyFigure].BodyID])=36));
Mar 6 '09 #2
tuxalot
200 100+
Hi DonRayner,

Thanks for the quick reply. I discovered I could also use this:

Expand|Select|Wrap|Line Numbers
  1. SELECT [QrySafetyFigure].[EDepartment], [QrySafetyFigure].[DateOfInjury] FROM QrySafetyFigure WHERE [QrySafetyFigure].[BodyID] IN(15, 16, 33);
Tux
Mar 6 '09 #3

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

Similar topics

2
by: Hohn Upshew | last post by:
I need some help to build a report enumerating the products in descending order depending on the sum of liters. In this way i can view the top products sold for a given period.But i fail to do...
3
by: Grim Reaper | last post by:
I know this is probably an easy question, but I could not find/figure it out. Basically, I am printing mailing labels with a "Sorting/Grouping" section that groups the label types together....
3
by: ahaque38 | last post by:
Hello. Using A2K SP3, I am having the following problem with a report using "Sorting and Grouping". I have recently added a grouping in the reports for "Category2<>'CONTRACTS'". I have...
11
by: James P. | last post by:
Hello, I have a report with the Priority field is used as sort order and grouping. The problem is the data in this Priority field if sorted in ascending order is: High, Low, and Medium. How...
8
by: Mike MacSween | last post by:
tblCourses one to many to tblEvents. A course may have an intro workshop (a type of event), a mid course workshop, a final exam. Or any combination. Or something different in the future. At...
1
by: Jon via AccessMonster.com | last post by:
Hi Guys, My "Sorting and Grouping" in my report looks like this: Field/Expression Sort Order sID Ascending ((= Project Name Ascending User *** ...
2
by: ME | last post by:
I need to know how to create a MULTI page report. All I can seem to create is a report with only one page, even though the datasource it is bound to returns multiple records. I have posted an...
6
by: ApexData | last post by:
Hello I'm having a problem creating a sql statement that works for me. I have 1-Table. I have 3-Fields in this table that are bound checkboxes (Boolean) Apple/Cherry/Grape. Any of which may or...
10
by: OldBirdman | last post by:
On a Report, can I change any of the fields in the "Sorting and Grouping Dialog" from within Visual Basic??? Changing the OrderBy property of the Report doesn't change anything, nor does adding an...
6
patjones
by: patjones | last post by:
Good afternoon: This seems like it shouldn't be hard, and then again this is how so many problems seem at the outset. My situation is this: I have a report called rptMain319, which is based...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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
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...
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...

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.