I would like to be able to copy the current record to a different table. I am tracking donations and I create a new table of donations each year--some of the records will be the same or slightly different. I used to do this with a macro in Access 2003, but it doesn't work in Access 2007 the way it was, and I can't find other commands that will work. I would appreciate any help.
12 6592
Why not just store all data for all years in one table. Have a field for year, and then run a query that selects only for the year you want to see. This saves duplicating work and would use the database to its best potential.
patjones 931
Recognized Expert Contributor
Hi Cindy,
errol999 is correct here. It violates accepted database design rules to have multiple tables that store the same information. If your goal is to run reports off your data, you would simply create a query that picks out the year you want information for, and then base your report on that query.
Pat
NeoPa 32,570
Recognized Expert Moderator MVP
Cindy,
While I also echo what the others have said (See Normalisation and Table structures for further info), I wonder if your question relates simply to moving data from one table to another simply due to its year.
If not, perhaps you could explain a little more clearly and we may be able to be of some assistance.
This database is for a charity and is used for about 3 months of each year. We have two tables, one is called donor possibilities, and the other is auction items. At the beginning of each year we make a backup copy of the table and call it by the year (as we infrequently need to look back at previous years donations, but we do sometimes), and then move the records from auction items table, leaving it empty, and append them to the donor possibilities table. The two tables have many of the same fields, but some are different. The donor possibilities table always has some records left in it, either from businesses that donated in the past but not the previous year, or are perhaps new businesses that didn’t exist the previous year. We run a report on the donor possibilities table based upon the volunteer that is to contact them. In this report, I want the business to be listed only once, and only with what they gave the previous year, not everything they have given in years past. I can’t select the records by year as some may have not donated the previous year, but had asked to be contacted again, or some may not have been in business last year. I really don’t want to have to have a field that I have to keep updated to mark them as active. As businesses go out of business or ask to not be contacted again, there is no reason for us to keep the record. If they do donate something, that record is moved to the auction items table and the additional fields are updated. It is nice to just be able to create a button on the form to click to make this happen.
@NeoPa
Please see my post. I am having trouble figuring out if I need to reply by clicking the reply after the person's comment, or to click post reply. It seems like either my post is not saved, or the person is never notified of my most recent post. Please excuse my difficulties in posting correctly.
NeoPa 32,570
Recognized Expert Moderator MVP
No worries Cindy. They are all possible ways of replying. Reply by a post takes you to a quick-reply area on the same page (but also saves which post you clicked in order to quote it) where you have another option to go to the Advanced reply page, and Post Reply takes you to the Advanced reply page directly.
Why do you think the person may not be notified of the post though? Or that the post may not have been saved?
Thanks for your reply. I think it because after I spent several minutes typing the reply, it never showed up in the thread, and no one ever repsonded. I'm not sure what's going on. When I click reply, it takes me to a page that says to sign up, or login in if you are already a member. When I login at the current member part, it then says "we show you are already a member" and then it never takes me to where I can reply. So then I start over, then finally it lets me reply.
It's been long enough that for this year I've finished copying all my records manually, but I'd still like to be able to do this for next year, assuming I'm still the one working on the database.
NeoPa 32,570
Recognized Expert Moderator MVP
I need to revisit this. I haven't had much time to look at any complicated threads recently so I've had to leave this aside until I get a bit more than a minute to sit down and check properly.
NeoPa 32,570
Recognized Expert Moderator MVP
There is much that can be done in a situation like yours Cindy, but to point you in the right direction I'd need to understand you a little better. I've read through your post #5 and I can understand you have two tables [Donor Possibilities] & [Auction Items]. What I don't understand is how these tables can contain similar data. Without further explanation I can only go by the names. It would seem clear that [Donor Possibilities] contains data on individuals or enterprises that may have, or may be constrained to, donate in some way. [Auction Items] on the other hand, would appear to be a table to maintain those items that could be auctioned to raise funds. I see no possibility of overlap here (short of auctioning a meal with some of the more attractive donors to raise funds - but I somehow doubt you're talking about that). You say the two tables have many of the same fields.
As far as archiving the data goes, this is relatively straightforward , but does depend absolutely on knowing precisely what you want archived. It's no good having a general understanding of what needs doing that a human may understand. It must be based on solid and explained logic. If you have this logic then it needs to be explained clearly and precisely. Precisely enough that any two people reading the logic would always be in a position to determine what needed archiving in all possible circumstances.
This logic is normally expressed as criteria relative to the fields contained within the specific table. I could guess that the table to be archived is [Donor Possibilities], but that would need to be clarified and some fields (particularly the relevant ones at least) would need to be shared with us before we could even start to think about going forward.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: davidgordon |
last post by:
Hi,
I need some pointers/help on how to do the following if it possible:
In my access db, I have the following:
Tables: Products, Sub-Assembly, Product-Pack
Table, Products
|
by: john |
last post by:
In my form I have a master table and a details table linked 1xM. I can
search through the whole parent table but I also like to be able to search
through the child table fields to find parent records. Should I design a new
form for this or can I somehow make this work in the same form.
Thanks in advance,
john
|
by: MLH |
last post by:
Suppose, in a multi-user environment, you
have append query SQL in a VBA procedure
that looks like INSERT INTO MyTable...
and the next line reads MyVar=DMax("","MyTable...
You can never be certain that MyVar will be
set to the key-field value that was created
when the Append query ran. Now, there are
other ways to do it - I know - that will ensure
you 'nab' the correct record. But I was wondering
|
by: Maximus |
last post by:
I have an issue and I am not sure what the best resolution would be.
Currently I have an .asp page that looks for a record in an Access
table (tbl_WJS_Input) where the week ending date is mm/dd/yyyy and
JobNumber is 12345. If the 12345 job number doesn't exist with that
particular week ending date the record is created. The page then
displays the form fields to allow the user to update the fields in the
table.
Fields in the table are...
|
by: Maximus |
last post by:
I need some help. I have an .asp page that interfaces with an Access
table (wjs_SuperInput). The .asp page looks to the table and pulls a
recordset based on a job number, 12345, and a weekending date, mm/dd/
yyyy. If there is no record for that job number with that particular
weekending date a record is created, and the page refreshes, with form
fields to allow the user to edit the record and then update it.
Fields in the table are:
...
| |
by: mcca0081 |
last post by:
hi - i'm trying to delete one of the duplicate records based on the
most current date.
here's the code for my access 2000 db. any help would be
appreciated!!! - thank you kindly
Sub DeleteDuplicateRecords()
' Deletes duplicates from the specified table, keeping the most
current received date record.
' No user confirmation is required.
|
by: Cindy Huyser |
last post by:
I have an Access 2000 database behind a threaded Java application that
that can have have concurrent access to the same table (but not the same
record). The database is set up for shared access with "No locks" as the
default, so that optimistic record locking should take place, and "Open
databases using record-level locking" is selected. Each Java thread gets
a new connection to the database, then updates its record.
One of my users has...
|
by: mark_aok |
last post by:
Hi all,
I'm typing up a report for a database, and in this massive design
manual that I'm writing, I'd like to indicate the number of bytes of a
typical record in each table. And I was wondering what the easiest
way to do this is.
I understand that Access uses a variable amount of storage per field
(i.e a 1 charcter string, and a 255 character string use different
amounts of memory, even if they have the same maximum characters). So
|
by: dav3 |
last post by:
Alright folks I am in need of a lil guidance/assistance here. I have a program which reads in a txt file. This txt file contains lines of the form
January 3, 2007, 85.8
Now each line of the txt file is to be read into my java program and then inserted (from the program into an Access Database). I am not exactly sure of where the problem lies. I know it has something to do with how I am parsing the file, or how I am passing my arguments to...
|
by: Gord |
last post by:
If I have a form open with a subform control on it in datasheet view that
has its record source set to a query or a table, is it possible to determine
which record the user has clicked into with VB? I don't mean the text box
with which you can determine the field/column, but the record (row). I
guess what I'm looking for would be the bookmark? (or some line numbering?)
or whatever information would aid in determining unambiguously which...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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,...
|
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...
|
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...
|
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,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |