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

help reports

Hi
Below mention is the reply from Salad on my query i created a crosstab
query and form not based on any table of qurey but this doesnt work .
I somehow have missed something actually i have too many database
tables with relationship and need the cycle time of projects.

i have a huge database based on date and time need to create
different report we need to measure our work processes how many order
received , order cancelled, completed and count of items completed on
or before time.
chart or pivot report how do i do that.
Please help.
Thanks,


If you are a newbie, the best method is to
1) Create a query that you will use in the report.
2) Use the Report wizard to create the report template.
3) Create a form to call the report.

I usually like to create a query that does little filtering for a
report. It is irrelevent in sorting the query...that's done in the
Report under the menu item View/Sorting&Grouping. The query should
produce most (if you don't have calced fields) the columns you want.
In your case your query would be a Pivot/Crosstab.
Once the report is created using the wizard, put in the finishing
touches, move/size the fields, etc.
Now create a form. You might want a from and to date. You might
want
to select by client or employee. Whatever fields you want to filter
on
put in.
Now, I have a command button for calling the report. I might do
something like this.
Dim strFilter As String
If Not IsNull(Me.FromDate) Then
strFilter = strFilter & "DateFld #" & Me.FromDate & "# And
"
endif
If Not IsNull(Me.ToDate) Then
strFilter = strFilter & "DateFld < #" & Me.ToDate & "# And "
endif
If Not IsNull(Me.ProductType) Then
strFilter = strFilter & "ProductID = " & Me.ProductID & " And
"
endif
etc.....
'Remove the And at the end of the string
strFilter = Left(strFilter,Len(strFilter) - 5)
'Call the report
Docmd.OpenReport "YourReportName",acViewPreview,,strFilter

Apr 24 '07 #1
1 1688
access baby wrote:
Hi
Below mention is the reply from Salad on my query i created a crosstab
query and form not based on any table of qurey but this doesnt work .
I somehow have missed something actually i have too many database
tables with relationship and need the cycle time of projects.
If you have created the query most of the hard part is over.

Click on Reports/New/Report Wizard. Select your query and follow the
step to the end. Most likely you'll have to make some adjustments to
the form regarding the placement of the fields.

Unless your query filters the records you want on the report, you have
two options. The first is to prompt for the filter. For example, if
the query is to include records between a date range you could enter in
the criteria row of the date field
Between [Enter From Date] And [Enter To Date]

If this is an application other users will be working with, you might
want to create a form that calls the report you created and by using
fields you enter on the form filter it when you call the report with the
Docmd.OpenReport
command.
>
i have a huge database based on date and time need to create
>>different report we need to measure our work processes how many order
received , order cancelled, completed and count of items completed on
or before time.

>>chart or pivot report how do i do that.


>>Please help.


>>Thanks,


If you are a newbie, the best method is to
1) Create a query that you will use in the report.
2) Use the Report wizard to create the report template.
3) Create a form to call the report.

I usually like to create a query that does little filtering for a
report. It is irrelevent in sorting the query...that's done in the
Report under the menu item View/Sorting&Grouping. The query should
produce most (if you don't have calced fields) the columns you want.
In your case your query would be a Pivot/Crosstab.
Once the report is created using the wizard, put in the finishing
touches, move/size the fields, etc.
Now create a form. You might want a from and to date. You might
want
to select by client or employee. Whatever fields you want to filter
on
put in.
Now, I have a command button for calling the report. I might do
something like this.
Dim strFilter As String
If Not IsNull(Me.FromDate) Then
strFilter = strFilter & "DateFld #" & Me.FromDate & "# And
"
endif
If Not IsNull(Me.ToDate) Then
strFilter = strFilter & "DateFld < #" & Me.ToDate & "# And "
endif
If Not IsNull(Me.ProductType) Then
strFilter = strFilter & "ProductID = " & Me.ProductID & " And
"
endif
etc.....
'Remove the And at the end of the string
strFilter = Left(strFilter,Len(strFilter) - 5)
'Call the report
Docmd.OpenReport "YourReportName",acViewPreview,,strFilter
Apr 24 '07 #2

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

Similar topics

0
by: SWu | last post by:
Hi all Could someone please tell me how to configure and deploy my Crystal reports? Any help would be greatly appreciated. I want to be able to deploy my reports/web pages to another domain,...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
4
by: erick-flores | last post by:
Hello all How do I write this SQL in VBA code: SELECT DISTINCTROW Employees.UsernameHold, .ExpenseReportID, .EmployeeID, .ExpenseType, .ExpenseRptName, .ExpenseRptDescr, .DateSubmitted,...
3
by: knightsmastergeneral | last post by:
Hi, I'm currently working on getting junit and junireport to take some java files, convert it to xml and then display error messages / success rates etc in html which is one of the features of...
1
by: CoolBreeze812 | last post by:
Hi, I need help with a query and I'm having trouble getting it formed correctly. I have 3 tables: users, authorization_users, and reports. The user table contains a bunch of users with fields...
2
by: kenmasters675 | last post by:
I need help with the following code. I am trying to extract two reports at the same time, but I want the viewer to see the report first before exporting it. The reason is in case the report is null....
7
by: google | last post by:
I am trying to automate the way reports are printed in an Access 2003 database - I have ~200 records (people) who require between 5 and 10 customized reports (depending on values within certain...
3
by: Loogie | last post by:
I want to create reports and I don't care if I use crystal reports or vb.net reports. I am using vb.net 2005 and the app pulls data from user created access db's and compact 2005 sdf's. Here is...
3
by: Miro | last post by:
Hi, Just wondering what a good book is on visual studios 2008 ( or 2005 if no 2008 ) that teaches you how to properly use crystal reports with it. Or im assuming that as long as I can create a...
0
by: akshaycjoshi | last post by:
Most of you people are already familier with the working of crystal reports unlike me.I am working on an application when I have no other option but to use CR. It is very diff. for me to read an...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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...

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.