473,790 Members | 2,437 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Building an Activity report

I'm having trouble building a query to gather the information I need
from a table. I need to be able to assemble an inventory report that
displays receipts, output, and running inventory from a table named
tblHistory.

My setup:
I am running A97. I have one table called tblIssues linked in a
one-to-many-relationship with a table called tblHistory. The tblIssues
table contains the issue header information, while the tblHistory table
lists off all the different departments an issue has been to as it
progressed towards resolution.

**tblHistory field names**
IssueID (foreign key)
HistID (primary key)
Department
DateBegin
DateEnd

When an "issue" is created on tblIssues, a record is automatically
created in tblHistory, which captures the current user department and
time stamps the DateBegin field. When they 'move' it to another
department the DateEnd field is filled in on tblHistory. A new record
is then created with the appropriate department name and DateBegin
field is time stamped on the new record. This process continues as many
times as necessary until the 'issue' is closed, at which point the
DateEnd field is filled in and no new records created.

This seems to work fine in practice, as users are able to determine
where an 'issue' originated, where it's been, and where it currently
resides. My problems start when I try to create an activity report,
which needs to show a breakdown of Received, Output, and Running
Inventory by Month within department.

The report headers would look something like this:
Department
Month
Received, Output, Running Inventory

I can create a report that shows received easily enough by querying the
department and DateBegin fields. I can also create a report that shows
the Output by querying the department and the DateEnd fields. What I
can't figure out how to do is how to put both of those figures on a
single report so that I can show inputs AND outputs within a month. The
tricky part is what data field to use to populate the 'Month' part
since I don't want this to be by DateEnd or by DateBegin, but buy
both. It seems to me there is probably an easy way to do this, and I'm
just not getting it.

Any ideas or comments would be greatly appreciated.

Jan 12 '06 #1
1 1898
You didn't define Received, Output, or Running Inventory. Do those represent
simply the number of Issues records received by the Department, completed by
the Department, and Received but not yet Completed by the Department?

You do have to understand that _you_ know your business/organization's needs
far better than we, so we can't tell you how to group by month. It could
mean "number of issues received just this month", "number of issues
completed just this month", and "number of issues received in any month but
not yet completed", but it is not _necessarily_ those definitions that will
be helpful for your report.

You need to look at the USE to which that report will be put, and, quite
possibly, confer with the users to determine what _they_ need and want from
the report.

Larry Linson
Microsoft Access MVP

<An***********@ bcbsmn.com> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.com.. .
I'm having trouble building a query to gather the information I need
from a table. I need to be able to assemble an inventory report that
displays receipts, output, and running inventory from a table named
tblHistory.

My setup:
I am running A97. I have one table called tblIssues linked in a
one-to-many-relationship with a table called tblHistory. The tblIssues
table contains the issue header information, while the tblHistory table
lists off all the different departments an issue has been to as it
progressed towards resolution.

**tblHistory field names**
IssueID (foreign key)
HistID (primary key)
Department
DateBegin
DateEnd

When an "issue" is created on tblIssues, a record is automatically
created in tblHistory, which captures the current user department and
time stamps the DateBegin field. When they 'move' it to another
department the DateEnd field is filled in on tblHistory. A new record
is then created with the appropriate department name and DateBegin
field is time stamped on the new record. This process continues as many
times as necessary until the 'issue' is closed, at which point the
DateEnd field is filled in and no new records created.

This seems to work fine in practice, as users are able to determine
where an 'issue' originated, where it's been, and where it currently
resides. My problems start when I try to create an activity report,
which needs to show a breakdown of Received, Output, and Running
Inventory by Month within department.

The report headers would look something like this:
Department
Month
Received, Output, Running Inventory

I can create a report that shows received easily enough by querying the
department and DateBegin fields. I can also create a report that shows
the Output by querying the department and the DateEnd fields. What I
can't figure out how to do is how to put both of those figures on a
single report so that I can show inputs AND outputs within a month. The
tricky part is what data field to use to populate the 'Month' part
since I don't want this to be by DateEnd or by DateBegin, but buy
both. It seems to me there is probably an easy way to do this, and I'm
just not getting it.

Any ideas or comments would be greatly appreciated.

Jan 12 '06 #2

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

Similar topics

0
1075
by: skn | last post by:
Hello, Is there any option to suppress the JVM activity report that gets displayed, when you execute Java APIs from within Python using JPype. E.g., JVM activity report : classes loaded : 26 JVM has been shutdown
1
2407
by: Sandy | last post by:
We have a web report that times out after 20 minutes if there has been no activity on the report. The timeout is set at the application level and I am unable to get this adjusted. I would like to refresh the current screen after 15 minutes if there has been no activity by the user on the web report. Can someone provide me any ideas on how to write the javascript to determine if there has been 15 minutes without any activity. Thanks....
13
1595
by: i. Wiin | last post by:
I've got a daily based crystal report that doesn't show 0's for days where no activity occurred. How do I get 0 values to show up in the report?
3
6542
by: wsox66 | last post by:
I am new to Access and need some help building a report. I have looked through previous posts on reports but none of them seem to answer my question completely. I am using Access 2003 and I have a database with one table. I have built ten different queries to organize run calculations on the records in the table. The problem is that the queries don't all access the same columns nor do they all return the same number of rows and columns in...
6
6843
by: wugon.net | last post by:
Hi , Anyone know how to monitor db2 trigger activity ? We suffer some trigger issue , and we try to monitor trigger's behavior use event monitor and db2audit, but both tools can not get trigger's sql statment and cost, have other tools can get trigger's executing sql statment and cost ? our test case as follow: Env:
4
2194
by: stpark22 | last post by:
Hello, I'm building a tracking tool using Access 2003, where my users will be entering orders that includes quantity of products sold, and cost per unit. I'm in the process of building several instant reports where they can click on a control without having to specific any criterias such as data ranges and pull up an instant report What I'm having trouble with is building reports that will compute totals by certain dates (Totals For...
1
1780
by: mirandacascade | last post by:
Apologies in advance...I'm sure this is a trivial question... Access 97. Situation is this: 1. VBA code sets the recordsource property of a report object; the recordsource is a querydef which is an SQL Server stored procedure 2. VBA code does DoCmd.OpenReport specifying the report whose recordsource property was set as described in #1 3. report opens/displays as expected
1
1874
by: cdhaynes | last post by:
Hi, I am using unbound text boxes in the header of a form to allow the user to search on a number of fields. I am using VBA to build a query string based on these and it has been fine when comparing text fields on the main form but I have run in to trouble comparing date/time fields on a subform. The subform is called Activity and I am comparing to the date/time field ActivityStartDate. This is the code: If Not IsNull(Me.searchFromDate)...
4
1721
by: Michel Esber | last post by:
Environment: DB2 v8 LUW FP 15 running on Linux. For some reason that I can´t explain, a simple insert statement on a table may run very quickly, or may take forever (20-30mins) to finish. There is a trigger (AFTER INSERT for each row) on this table. I have studied the execution plan, and it seems normal to me. The total query cost is below 2000. There are no huge tablescans as well.
0
9512
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10413
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10200
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10145
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,...
0
9986
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 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...
0
6769
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();...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3707
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
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...

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.