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

help with a report..

Ok.. I have a table where people add and delete records when machines
are sold or new ones brought into inventory. I know.. this isn't a good
business practice, but thats how they do it.

What I need is snapshots of the table on a specified day each month,
and queries comparing the 2 in order to get a list of Removed and Added
Records.

the queries are easy enough, but I have to remember to copy the latest
table as NewPopulation and the NewPopulation from last month as
LastPopulation before I run each query. This is kind of a pain and was
wondering if there was a way to put something like [enter table name]
in a query to select whatever table I wanted to use.

te**@conwaycorp.net

Nov 13 '05 #1
1 1185
Yes, I definitely agree that it is not a good practice to delete the records
when the machines are sold. You lose historical data that could be very
valuable in analyzing your business and planning for the future.

You can use Make Table Queries to copy the table, using the date/time as
part of a constructed name for the new table, based on your VBA code
comparing date/time (not necessarily trivial, but doable without "advanced
mathematics). You can use Windows scheduling to run your Access application
at dates and times of your choosing with Command Line parameters to run
specific macros that initiate these processes.

If you also have identical data, or data so similar that you need to specify
the table name to select the information you need, you likely have other
design issues that should be addressed, as well. You can use [Enter
somethingorother] to prompt for criteria on Fields; but that does not extend
to specifying the Table Name. You'll need to write, or have written, VBA
code to do what you want, I believe.

Perhaps if you could clarify your table layout and structure, someone could
offer more specific advice.

Larry Linson
Microsoft Access MVP
<te**********@hotmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Ok.. I have a table where people add and delete records when machines
are sold or new ones brought into inventory. I know.. this isn't a good
business practice, but thats how they do it.

What I need is snapshots of the table on a specified day each month,
and queries comparing the 2 in order to get a list of Removed and Added
Records.

the queries are easy enough, but I have to remember to copy the latest
table as NewPopulation and the NewPopulation from last month as
LastPopulation before I run each query. This is kind of a pain and was
wondering if there was a way to put something like [enter table name]
in a query to select whatever table I wanted to use.

te**@conwaycorp.net

Nov 13 '05 #2

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

Similar topics

7
by: Phin | last post by:
I need your HELP! I've seen all the posts on using Crystal Reports within vs.net (vb.net) and changing a SQL query at runtime. When I tried to pass in a dataset into the crystal report at...
5
by: MGFoster | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I've converted an ACC97 .mdb file to an ACC2K2 .adp. A report that worked in ACC97 doesn't work in ACC2K2. Report setup: ACC97 ...
1
by: Simon Matthews | last post by:
Hope someone can help an Access beginner! I've just started keeping my surgical logbook on access and it's a simple flat-file affair. I have created several queries that will list cases...
5
by: Steve Patrick | last post by:
Hi All You guys are my last hope, despite spending money on books and hours reading them I still can not achieve the results I need. I have designed a database in Access 2000 based on 1 table,...
15
by: Richard Hollenbeck | last post by:
I tried to ask this question before on the 14th of January but I never got a reply. I'm still struggling with the problem. I'll try to rephrase the question: I have a crosstab query with rows...
3
by: Deasun | last post by:
I need some help please! Crystal is driving me nuts. Heres my code so far, see below. Problem: On the .export() line it comes back with error #5 Login failed! I know the login info is good so...
1
by: PlumeProg | last post by:
Hello, I can't find a way to bind a dataset at runtime as a source for my report source. I looked into msdn and found some sample : ms-...
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...
3
by: DeanL | last post by:
Hi guys, I'm in need of a little help with a report I'm setting up on Access 2000. The report shows data depending on entries on a form that has 7 fields (Min and Max Cost, Fiscal Year, Min and...
3
by: jambonjamasb | last post by:
Hi I have two tables: email_tbl Data_table Data table is is used to create a Form Data_form
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.