A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Merging new data to existing table



 
 
Thread Tools Display Modes
  #1  
Old February 2nd, 2009, 02:18 PM posted to microsoft.public.access.gettingstarted
newyorkfonzie
external usenet poster
 
Posts: 1
Default Merging new data to existing table

Hello all,

I am new to Access and need some guidance. I have an .mdb file that currently
has 1 table and data within that table. I will be getting data from people in
both excel format, as well as other .mdb files that contain the same field
names. I am to import the new data into the existing .mdb file. The criteria
when importing this new data states that a new unique ID must be assigned to
each row of data.


Here is the tricky part. The unique ID's that are created must start at the
next highest number above the existing number in the existing mdb file. So if
the last number is 5000 in the current existing mdb file, the new data being
imported must start being issued ID's at 5001. Keeping in mind that sometimes,
the ID's may be given to me, in that case, I would still need to merge the
data without generating ID's for them if they already exist.

So far, on my own, I am only able to import new data into an existing table
but do not know how to set up that ID generation I just described.

The second thing that needs to be done is something similar to the
concatenate feature in Excel. Where I have one blank column in the mdb table
that needs to be populated with concatenated values based on 2 different
fields, so in theory, I would like to set a conditional statement that says,
if row D = 1, then C = Custom Value+ID Field( + Indicates concatenation),
else (C= Custom Value+ID Field).

The conditional statementes I listed I would have no idea where to put them
or the syntax for them.

Any and all help greatly appreciated.

  #2  
Old February 3rd, 2009, 03:10 AM posted to microsoft.public.access.gettingstarted
Arvin Meyer [MVP][_2_]
external usenet poster
 
Posts: 2,310
Default Merging new data to existing table

Very easy. Set up an autonumber field in the new table. When you append the
data to this table, leave the autonumber field alone. It will automatically
fill in the number as required.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"newyorkfonzie" u49288@uwe wrote in message news:911bb676a1096@uwe...
Hello all,

I am new to Access and need some guidance. I have an .mdb file that
currently
has 1 table and data within that table. I will be getting data from people
in
both excel format, as well as other .mdb files that contain the same field
names. I am to import the new data into the existing .mdb file. The
criteria
when importing this new data states that a new unique ID must be assigned
to
each row of data.


Here is the tricky part. The unique ID's that are created must start at
the
next highest number above the existing number in the existing mdb file. So
if
the last number is 5000 in the current existing mdb file, the new data
being
imported must start being issued ID's at 5001. Keeping in mind that
sometimes,
the ID's may be given to me, in that case, I would still need to merge
the
data without generating ID's for them if they already exist.

So far, on my own, I am only able to import new data into an existing
table
but do not know how to set up that ID generation I just described.

The second thing that needs to be done is something similar to the
concatenate feature in Excel. Where I have one blank column in the mdb
table
that needs to be populated with concatenated values based on 2 different
fields, so in theory, I would like to set a conditional statement that
says,
if row D = 1, then C = Custom Value+ID Field( + Indicates concatenation),
else (C= Custom Value+ID Field).

The conditional statementes I listed I would have no idea where to put
them
or the syntax for them.

Any and all help greatly appreciated.



  #3  
Old February 3rd, 2009, 03:40 PM posted to microsoft.public.access.gettingstarted
newyorkfonzie via AccessMonster.com
external usenet poster
 
Posts: 1
Default Merging new data to existing table

Arvin Meyer [MVP] wrote:
Very easy. Set up an autonumber field in the new table. When you append the
data to this table, leave the autonumber field alone. It will automatically
fill in the number as required.
Hello all,

[quoted text clipped - 39 lines]

Any and all help greatly appreciated.



That solution doesn't work. A new error table is created showing that the
imported data had a null value for all rows in the ID field.

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...arted/200902/1

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:12 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.