473,769 Members | 1,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Append Table problem

Hi all,

I am having a problem appending data to an existing table. I have two
tables with identical fields and I want to append the data from one
table (T2) to the first (T1). T1 has 136 records and T2 has 209, for
a difference of 73 records. When I run the append query, only 72
records are selected from T2, and there doesn't seem to be a pattern
as to why the records selected were selected. They aren't the last 72
records or the first. Can anyone tell me what I am doing wrong or if
they have had this happen before.

Thanks,

Wade
Nov 30 '07 #1
7 1872
wa*******@gmail .com wrote:
Hi all,

I am having a problem appending data to an existing table. I have two
tables with identical fields and I want to append the data from one
table (T2) to the first (T1). T1 has 136 records and T2 has 209, for
a difference of 73 records. When I run the append query, only 72
records are selected from T2, and there doesn't seem to be a pattern
as to why the records selected were selected. They aren't the last 72
records or the first. Can anyone tell me what I am doing wrong or if
they have had this happen before.

Thanks,

Wade
Is it possible you have an index that does not allow duplicates?
Nov 30 '07 #2
On Nov 30, 12:08 pm, Salad <o...@vinegar.c omwrote:
wade.w...@gmail .com wrote:
Hi all,
I am having a problem appending data to an existing table. I have two
tables with identical fields and I want to append the data from one
table (T2) to the first (T1). T1 has 136 records and T2 has 209, for
a difference of 73 records. When I run the append query, only 72
records are selected from T2, and there doesn't seem to be a pattern
as to why the records selected were selected. They aren't the last 72
records or the first. Can anyone tell me what I am doing wrong or if
they have had this happen before.
Thanks,
Wade

Is it possible you have an index that does not allow duplicates?
I had several fields indexed, with duplicates being okay. I removed
the indexing and still having problems. Returned the same 72
records.
Nov 30 '07 #3
wa*******@gmail .com wrote:
On Nov 30, 12:08 pm, Salad <o...@vinegar.c omwrote:
>>wade.w...@gma il.com wrote:
>>>Hi all,
>>>I am having a problem appending data to an existing table. I have two
tables with identical fields and I want to append the data from one
table (T2) to the first (T1). T1 has 136 records and T2 has 209, for
a difference of 73 records. When I run the append query, only 72
records are selected from T2, and there doesn't seem to be a pattern
as to why the records selected were selected. They aren't the last 72
records or the first. Can anyone tell me what I am doing wrong or if
they have had this happen before.
>>>Thanks,
>>>Wade

Is it possible you have an index that does not allow duplicates?


I had several fields indexed, with duplicates being okay. I removed
the indexing and still having problems. Returned the same 72
records.
Is the query a "query" or are you creating the query in code? If
possible, open up your query in the query builder. Set it to a Select
criteria. I would think you have a filter on there someplace.

Perhaps post your SQL statement here, maybe someone can spot a problem.
Right now its simply guessing and by goshing.
Nov 30 '07 #4
<wa*******@gmai l.comwrote in message
news:7f******** *************** ***********@o6g 2000hsd.googleg roups.com...
On Nov 30, 12:08 pm, Salad <o...@vinegar.c omwrote:
>wade.w...@gmai l.com wrote:
Hi all,
I am having a problem appending data to an existing table. I have two
tables with identical fields and I want to append the data from one
table (T2) to the first (T1). T1 has 136 records and T2 has 209, for
a difference of 73 records. When I run the append query, only 72
records are selected from T2, and there doesn't seem to be a pattern
as to why the records selected were selected. They aren't the last 72
records or the first. Can anyone tell me what I am doing wrong or if
they have had this happen before.
Thanks,
Wade

Is it possible you have an index that does not allow duplicates?

I had several fields indexed, with duplicates being okay. I removed
the indexing and still having problems. Returned the same 72
records.
Access usually provides a message when some records are not appended. Do you
possibly have SetWarnings set to False, or do you have query confirmations
turned off? The Access message is somewhat cryptic but it can give a
hint....
Fred Zuckerman
Nov 30 '07 #5
On Nov 30, 12:26 pm, Salad <o...@vinegar.c omwrote:
wade.w...@gmail .com wrote:
On Nov 30, 12:08 pm, Salad <o...@vinegar.c omwrote:
>wade.w...@gmai l.com wrote:
>>Hi all,
>>I am having a problem appending data to an existing table. I have two
tables with identical fields and I want to append the data from one
table (T2) to the first (T1). T1 has 136 records and T2 has 209, for
a difference of 73 records. When I run the append query, only 72
records are selected from T2, and there doesn't seem to be a pattern
as to why the records selected were selected. They aren't the last 72
records or the first. Can anyone tell me what I am doing wrong or if
they have had this happen before.
>>Thanks,
>>Wade
>Is it possible you have an index that does not allow duplicates?
I had several fields indexed, with duplicates being okay. I removed
the indexing and still having problems. Returned the same 72
records.

Is the query a "query" or are you creating the query in code? If
possible, open up your query in the query builder. Set it to a Select
criteria. I would think you have a filter on there someplace.

Perhaps post your SQL statement here, maybe someone can spot a problem.
Right now its simply guessing and by goshing.
First of all, thanks for the help.

I am building my query in design view. Each table T1 and T2, has an
autonumber field. I tried selecting the field sans the autonumber
from T2 to append to T1.

The SQL code is here:

INSERT INTO CollN1 ( Collection_Num, Old_Num, Species, Col_Date,
Location )
SELECT CollN2.Collecti on_Num, CollN2.Old_Num, CollN2.Species,
CollN2.Col_Date , CollN2.Location
FROM CollN1 INNER JOIN CollN2 ON CollN1.ID = CollN2.ID;

I am not an SQL expert, but the problem seems to be the inner join on
the ID field. Both tables have an autonumber field, and the query is
selecting those records from T2 where T1.ID=T2.ID. Should I get rid
of the autonumber column, or is there a way around that.

thanks,
Wade
Nov 30 '07 #6
wa*******@gmail .com wrote:
On Nov 30, 12:26 pm, Salad <o...@vinegar.c omwrote:
>>wade.w...@gma il.com wrote:
>>>On Nov 30, 12:08 pm, Salad <o...@vinegar.c omwrote:
>>>>wade.w...@g mail.com wrote:
>>>>>Hi all,
>>>>>I am having a problem appending data to an existing table. I have two
>tables with identical fields and I want to append the data from one
>table (T2) to the first (T1). T1 has 136 records and T2 has 209, for
>a difference of 73 records. When I run the append query, only 72
>records are selected from T2, and there doesn't seem to be a pattern
>as to why the records selected were selected. They aren't the last 72
>records or the first. Can anyone tell me what I am doing wrong or if
>they have had this happen before.
>>>>>Thanks,
>>>>>Wade
>>>>Is it possible you have an index that does not allow duplicates?
>>>I had several fields indexed, with duplicates being okay. I removed
the indexing and still having problems. Returned the same 72
records.

Is the query a "query" or are you creating the query in code? If
possible, open up your query in the query builder. Set it to a Select
criteria. I would think you have a filter on there someplace.

Perhaps post your SQL statement here, maybe someone can spot a problem.
Right now its simply guessing and by goshing.


First of all, thanks for the help.

I am building my query in design view. Each table T1 and T2, has an
autonumber field. I tried selecting the field sans the autonumber
from T2 to append to T1.

The SQL code is here:

INSERT INTO CollN1 ( Collection_Num, Old_Num, Species, Col_Date,
Location )
SELECT CollN2.Collecti on_Num, CollN2.Old_Num, CollN2.Species,
CollN2.Col_Date , CollN2.Location
FROM CollN1 INNER JOIN CollN2 ON CollN1.ID = CollN2.ID;

I am not an SQL expert, but the problem seems to be the inner join on
the ID field. Both tables have an autonumber field, and the query is
selecting those records from T2 where T1.ID=T2.ID. Should I get rid
of the autonumber column, or is there a way around that.

thanks,
Wade
Yes. You have a "link line" between T1 and T2. Dbl-Click on it. Take
Option3, All records in T2 and matching in T1. Then drag T1's
autonumber into a column, turn ShowOff to false, and in the criteria enter
Is Null

Now it will select all records in T2 that have no records in T1.
Nov 30 '07 #7
On Nov 30, 12:53 pm, Salad <o...@vinegar.c omwrote:
wade.w...@gmail .com wrote:
On Nov 30, 12:26 pm, Salad <o...@vinegar.c omwrote:
>wade.w...@gmai l.com wrote:
>>On Nov 30, 12:08 pm, Salad <o...@vinegar.c omwrote:
>>>wade.w...@gm ail.com wrote:
>>>>Hi all,
>>>>I am having a problem appending data to an existing table. I have two
tables with identical fields and I want to append the data from one
table (T2) to the first (T1). T1 has 136 records and T2 has 209, for
a difference of 73 records. When I run the append query, only 72
records are selected from T2, and there doesn't seem to be a pattern
as to why the records selected were selected. They aren't the last 72
records or the first. Can anyone tell me what I am doing wrong or if
they have had this happen before.
>>>>Thanks,
>>>>Wade
>>>Is it possible you have an index that does not allow duplicates?
>>I had several fields indexed, with duplicates being okay. I removed
the indexing and still having problems. Returned the same 72
records.
>Is the query a "query" or are you creating the query in code? If
possible, open up your query in the query builder. Set it to a Select
criteria. I would think you have a filter on there someplace.
>Perhaps post your SQL statement here, maybe someone can spot a problem.
Right now its simply guessing and by goshing.
First of all, thanks for the help.
I am building my query in design view. Each table T1 and T2, has an
autonumber field. I tried selecting the field sans the autonumber
from T2 to append to T1.
The SQL code is here:
INSERT INTO CollN1 ( Collection_Num, Old_Num, Species, Col_Date,
Location )
SELECT CollN2.Collecti on_Num, CollN2.Old_Num, CollN2.Species,
CollN2.Col_Date , CollN2.Location
FROM CollN1 INNER JOIN CollN2 ON CollN1.ID = CollN2.ID;
I am not an SQL expert, but the problem seems to be the inner join on
the ID field. Both tables have an autonumber field, and the query is
selecting those records from T2 where T1.ID=T2.ID. Should I get rid
of the autonumber column, or is there a way around that.
thanks,
Wade

Yes. You have a "link line" between T1 and T2. Dbl-Click on it. Take
Option3, All records in T2 and matching in T1. Then drag T1's
autonumber into a column, turn ShowOff to false, and in the criteria enter
Is Null

Now it will select all records in T2 that have no records in T1.
Thanks a lot. That helped me out.

Wade
Nov 30 '07 #8

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

Similar topics

2
368
by: anita | last post by:
I am sorry if this sounds as a silly problem. I have table 1 with 10 records and table 2 with 20 records. I want to append 20 records from Table 2 to table 1. But when I run the append query, the 20 records gets appended below each and every record in table 1, Which results in total of 10*20=200 records, ideally it should be only 10 + 20 = 30 records. Can anybody pls help me out with this problem. Also can somebody suggest me a website...
1
2482
by: David Barger | last post by:
Greetings, It appears that an Append Query I run in Access XP is randomly failing to append a field. I have payroll data being entered into a payroll database. This data is exported daily to two csv files. (One for updated data, and the other for unupdated data.) The CSV files are attached to my Jobcosting database. After the CSV
2
3564
by: Mark | last post by:
I have a FE/BD 2002 DB on a XP pro platform. I know this is ugly but it works for me...... A text file is produced from our Oracle WMS. (Average 20k records) A command button deletes all records from a 1 field input table and then opens a form bound to this table. Results from the oracle query are pasted into the input table. When the form is closed, a destination table is cleared of all records and then each record from the input table...
5
5375
by: Michael C via AccessMonster.com | last post by:
Hello, I have a table that I am appending 3 seperate tables into. My main problem is that each time I append the data, it simply adds to the data already there. That might sound ok, except that if I append the data 3 times in succession, it copies the same data over 3x. Now I have copies in triplicate. It used to only transfer records that weren't already there, but not anymore. If I can't get the append to append correctly, I was...
22
18813
by: RayPower | last post by:
I'm having problem with using DAO recordset to append record into a table and subsequent code to update other tables in a transaction. The MDB is Access 2000 with the latest service pack of JET 4. The system is client/server, multiusers based. The MDBs are using record locking. Here is part of the code: Dim wkSpace As Workspace, db As Database Dim rstTrans As DAO.Recordset Set wkSpace = DBEngine.Workspaces(0)
3
8086
by: wvmbark | last post by:
First time poster... I just found this forum and it appears there's plenty of people here that could make short work of problem that's been driving me absolutely bonkers for months. Every day we incur numerous service problems “Events”. Each morning we have a global conference call where events which occurred within the previous 24 hours are discussed. Prior to the call, an analyst has to review these events and provide a report, ‘The Morning...
2
4128
by: sj | last post by:
Situation: I have 2 tables, parent table (Invoice) and child table (InvoiceDetails) that is link by InvID in the child. Requirement: Need to do one-time append of information to another table of the similar structure. Problem: When main table is append to the new table, it will bear a new ID.
8
2790
by: DongningLi | last post by:
At month end, there will be a month-to-date table that should be appended into the Year-to-date one. The MTD table is a lump-sum one, no way to enter into the YTD one entry by one entry. I can append Feb MTD to Jan MTD and make it a YTD table, just don't know how to do it continuously. For example, March, the only thing I can think of is to delete the Feb MTD, replace it with March MTD, and then append to the YTD. but this will involve...
4
2408
by: dougmeece | last post by:
Morning Everyone... I have a table that needs to be append to and also updated. All the fields in the table are populated with data from the text boxes and combo boxes on a form. The Date Submitted defaults to 1/1/00 if the cboSubmittedBox field is "No". Otherwise it is selected from a calendar. The Date Entered field defaults to the current date. There are 3 sets of criteria that need to be checked for the update or append to take place. ...
0
9423
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,...
0
10211
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, 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...
1
9994
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,...
0
8870
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7408
isladogs
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...
0
6673
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();...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.