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

How to Lomit a Report

Hi All,

Our database will soon have several thousand records.
I need to create a daily activity report that only lists what happened today.
I don't know VB at all - so, with that in mind, how can I do this?

Thanks very much,
Chuck
Nov 13 '05 #1
9 1198
"Chuck Insight" <j.*******@insightbb.com> wrote in message
news:uYSve.109902$nG6.86901@attbi_s22...
Hi All,

Our database will soon have several thousand records.
I need to create a daily activity report that only lists what happened
today.
I don't know VB at all - so, with that in mind, how can I do this?

You needn't use VBA, you could use a query with criteria on your date field
">Date()" for example. Of course, you'd need a date field to store an
"updated" or "created" date to start with but that could be populated from a
query as well.

HTH - Keith.
www.keithwilby.com
Nov 13 '05 #2
The answer is in the query under the report. If there is a date field
anywhere for the date of entry then you can put in a condition like >
(date() - 1) to get just the last day. I recommend that if you dont
have a field which automatically tracks the date of entry you should
put one in.

Alternatively, if you have an autonumber field to work with, you can do
a query which specifies only the last n records:

SELECT TOP 100 autonumberField, otherfields....
from tblYourTable
ORDER BY autonumberField DESC

Hope this helps

Nov 13 '05 #3
How will you tell what 'happened' 'today'?

Define 'happen'. I can figure what you target by 'today' :-) you
probably want an edit date in the record. That means you have to write
that from any form that uses the table(s) you want to report.

You can use the BeforeUpdate event of the form for this. First, extend
your table with a Date field, called dateEdited

Open the form that performs the 'happen' in design view
Make sure the form is selected, not some control (click the box at the
intersection of the rulers)
View the properties (from the menu, or the contextmenu)
Select the Events tab
at BeforeUpdate, select [Event Procedure]
Click the three dot button that becomes visible
At the location in the code module, type

dateEdited = Now()

Now, you can use a query to retrieve the records modified today. Have
int(dateEdited) in a column head, and Date() in the criteria row.

Qapla'!

Chuck Insight wrote:
Hi All,

Our database will soon have several thousand records.
I need to create a daily activity report that only lists what happened
today.
I don't know VB at all - so, with that in mind, how can I do this?

Thanks very much,
Chuck


--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html

Nov 13 '05 #4
Chuck Insight wrote:
Hi All,

Our database will soon have several thousand records.
I need to create a daily activity report that only lists what happened
today.
I don't know VB at all - so, with that in mind, how can I do this?


You don't need to know VBA for this, but you do need to know your
database structure.

Do any of the tables have a "Enter Date" or "Transaction Date" field
that is filled when a user neters a record? If so, you're in luck. If
not, you don't need to despair, it sounds like you're still at an early
enough stage to be able to incorporate this.

If you don't know how to determine the above, then you are in trouble
unless you have access to the database designer who set this up for you.

Write back and we can go from there.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Nov 13 '05 #5
"Tim Marshall" <TI****@PurplePandaChasers.Moertherium> wrote in message
news:d9*********@coranto.ucs.mun.ca...

when a user neters a record?


Did anyone else's eyes water when they read this? ;-p
Nov 13 '05 #6
My eyes watered at the thought of Lomiting something
Patrick

On Mon, 27 Jun 2005 15:32:06 +0100, "Keith"
<ke*********@baeAWAYWITHITsystems.com> wrote:
"Tim Marshall" <TI****@PurplePandaChasers.Moertherium> wrote in message
news:d9*********@coranto.ucs.mun.ca...

when a user neters a record?


Did anyone else's eyes water when they read this? ;-p


Nov 13 '05 #7
So yopu never make speling error? Or mistype anthinh?

Besides: Is 'neter' an existing verb? Or does it sound like anything to
you? I can't tell. That is, it does ring to me (the meaning being close
to bug-egg treater), but that won't tell you anything.

Keith wrote:
"Tim Marshall" <TI****@PurplePandaChasers.Moertherium> wrote in message
news:d9*********@coranto.ucs.mun.ca...
when a user neters a record?

Did anyone else's eyes water when they read this? ;-p


--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html

Nov 13 '05 #8
Keith wrote:
"Tim Marshall" <TI****@PurplePandaChasers.Moertherium> wrote in message
news:d9*********@coranto.ucs.mun.ca...

when a user neters a record?


Did anyone else's eyes water when they read this? ;-p


Since twiddled characters are one of the most common spelling errors my
mind converted the word without even thinking about it. But now that
you mention it, it does have a Three Stooges-style element of comedy to
it. I prefer Trevor's more subtle style of comedy that lets you put
the punch line together in your head.

James A. Fortune

Jeff Macauley: How long does it take you to determine how good a
programmer is?
Me: How long does it take you to determine how good a pool player is?

Nov 13 '05 #9
Keith wrote:
"Tim Marshall" <TI****@PurplePandaChasers.Moertherium> wrote in message
news:d9*********@coranto.ucs.mun.ca...
when a user neters a record?

Did anyone else's eyes water when they read this? ;-p


Ha ha ha, just saw this now. 8)

--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Nov 13 '05 #10

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

Similar topics

3
by: CSDunn | last post by:
Hello, I have a situation with MS Access 2000 in which I need to display report data in spreadsheet orientation (much like a datasheet view for a form). If you think of the report in terms of what...
1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
6
by: Bob Alston | last post by:
I am looking for Access reporting add-in that would be easy to use by end users. My key focus is on selection criteria. I am very happy with the Access report writer capabilities. As far as...
1
by: lorirobn | last post by:
Hi, I have a report that works just fine. Now I would like to add the capability to choose selection criteria to limit what is displayed. I created several reports that do this, but they used...
1
by: monskie | last post by:
Hello to all, I have a problem which could be trivial to you guys. This concerns opening several crystal reports on the a crystal viewer on an ASPX page by calling window.open. My...
6
by: Dave | last post by:
On my form I have combo boxes. These combo boxes, after updating them, populate respective listboxes that are located below the combo boxes on the same form. I am trying to use a "generate...
3
by: creative1 | last post by:
Here is how you create a complex data report that involves parent and child commands and you can update information at runtime. Its pretty straight forward to work with simple queries; however,...
12
by: Studiotyphoon | last post by:
Hi, I have report which I need to print 3 times, but would like to have the following headings Customer Copy - Print 1 Accounts Copy - Print 2 File Copy -Print 3 I created a macro to...
11
by: Gord | last post by:
When I open a certain report, it runs some code that generates the records that will be displayed in that report. This works fine. When I go to print preview the report it appears that the code...
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...
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: 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:
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
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
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...

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.