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

Report Count

I have a new database file which i have created
in my Table i have a field called name where 5 names can be selected
from list
also have a another field where the date is typed.
What i need to do is create sometype of calulation in a report where
i can pull data
What i need to do is create a report that adds how many times the name
is in the field
that looks like below if no date is entered i dont want to add it into
the details.
Because Adam may make a sale but he doesnt get the cash till the next
day
so i need to only Add them when the date is filled in .

What i need rerport to do is this
Adam 24/12/2007 147
Adam 10/11/2007 6
John 24/12/2007 8
John 10/11/2007 44
Also need a total as well
Total

24/12/2007 155
10/11/2007 50

Nov 13 '07 #1
1 1429
On Nov 12, 6:46 pm, Mrbanner <mrban...@swiftdsl.com.auwrote:
I have a new database file which i have created
in my Table i have a field called name where 5 names can be selected
from list
also have a another field where the date is typed.
What i need to do is create sometype of calulation in a report where
i can pull data

What i need to do is create a report that adds how many times the name
is in the field
that looks like below if no date is entered i dont want to add it into
the details.
Because Adam may make a sale but he doesnt get the cash till the next
day
so i need to only Add them when the date is filled in .

What i need rerport to do is this

Adam 24/12/2007 147
Adam 10/11/2007 6
John 24/12/2007 8
John 10/11/2007 44

Also need a total as well
Total

24/12/2007 155
10/11/2007 50
Use a query to create a recordset that excludes the unwanted records.
Then use the query to create a temporary table from which you can run
the report. You will probably want to allow the user to select a date
range, so put a couple of textboxes on the form that calls the
report. If you don't already have a form dedicated to this report, or
reports in general, then create one. Many reports require a date
range.

dim db as dao.database
dim sSQL as string

set db= currentdb( )
sSQL="INSERT INTO tblTemp SELECT * FROM tblSales WHERE [SaleDate]>=#"
& txtStartDate & "# AND [SaleDate]<= #" & txtEndDate & "# ;"
db.Execute sSQL
DoCmd.OpenReport SomeReport...

Nov 13 '07 #2

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

Similar topics

0
by: bill mahoney | last post by:
I have access 2k and I have 2 tables. One is a 7X6 table representing a month with zeroes padding the fields where no day exist. For example February 2003 0 0 0 0 0 0 1 2 3 4 5 6 7 ...
6
by: Richard Holliingsworth | last post by:
Hello: Thanks for reading this. I would like to build a report (Access 2002) that uses SQL queries to count records in specific groups. I've tried several methods and so far no luck. ...
5
by: Terri | last post by:
I have a form with a multi-select combo. I dynamically build a SELECT statement, open a report, and set the recordsource to my dynamic SELECT statement. I count the records returned in the report...
1
by: Justin Koivisto | last post by:
I am trying to create a report that displays a name of an advertising source and count of the number of times it was hit between certain date ranges. The data is split between two different...
1
by: VBSponge | last post by:
Hi all. In A2K i have a report with a control bound to to calculate the page count for the report. I need to retrieve this page count from the report, and build it into a TOC containing this an...
2
by: SJM | last post by:
I have a report that displays records of real estate properties. It is possible for each property to appear a number of times for various reasons. Each record however is unique. What I would like...
6
by: Mike Conklin | last post by:
This one really has me going. Probably something silly. I'm using dcount for a report to determine the number of different types of tests proctored in a semester. My report is based on a...
0
by: Rahul Chatterjee | last post by:
Hello All I have designed a dotnet application using VB which basically takes a selection and passes value to a crystal report which in turn passes the value to a Stored procedure. After the...
1
misscrf
by: misscrf | last post by:
have a report that I am trying to build and I can't figure out how to make Access group and sum/count information to give me a nice statistics report. Basically the database has case information for...
1
by: N06149 | last post by:
I have a report based on a query. I list an Org_Type then Org_Name then the Projects associated with it. Sample of report below: Community Type...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.