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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Need to update records in a table based upon records in another ta



 
 
Thread Tools Display Modes
  #1  
Old December 16th, 2009, 10:17 PM posted to microsoft.public.access.queries
Iram
external usenet poster
 
Posts: 122
Default Need to update records in a table based upon records in another ta

Hello,
I am using access 2003. I have a table called tbl_Master which contains
fields such as DeviceSN, Name, SlateForRetirement?, Flag1, Address and City.
The unique record is DeviceSN.
The data in this table is old so I performed a walk through of the office
and created a spreadsheet with updated information.
I imported this spreadsheet and called it tbl_ImportedUpdatedInventory

Can you help me with detail instructions on how to create a query that will
upate the master table with the fresh information i.e. Name, Address, City,
SlateforRetirement from the imported table?

Your help is greatly appreciated.

Thanks.
Iram


  #2  
Old December 16th, 2009, 10:59 PM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Need to update records in a table based upon records in another ta

Create a query in design view adding both tables. Click on the DeviceSN of
one table and drag to the other.
Drag down the fields of the old table into the FIELD row of the grid.
Add the field names of the imported data table in the UPDATE TO row of the
grid, using brackets around table and field names like this --
[My_Excel_Import].[Field_1]

--
Build a little, test a little.


"Iram" wrote:

Hello,
I am using access 2003. I have a table called tbl_Master which contains
fields such as DeviceSN, Name, SlateForRetirement?, Flag1, Address and City.
The unique record is DeviceSN.
The data in this table is old so I performed a walk through of the office
and created a spreadsheet with updated information.
I imported this spreadsheet and called it tbl_ImportedUpdatedInventory

Can you help me with detail instructions on how to create a query that will
upate the master table with the fresh information i.e. Name, Address, City,
SlateforRetirement from the imported table?

Your help is greatly appreciated.

Thanks.
Iram


  #3  
Old December 17th, 2009, 12:25 AM posted to microsoft.public.access.queries
Iram
external usenet poster
 
Posts: 122
Default Need to update records in a table based upon records in anothe

Thanks! It worked beautifully!


Iram/mcp



"KARL DEWEY" wrote:

Create a query in design view adding both tables. Click on the DeviceSN of
one table and drag to the other.
Drag down the fields of the old table into the FIELD row of the grid.
Add the field names of the imported data table in the UPDATE TO row of the
grid, using brackets around table and field names like this --
[My_Excel_Import].[Field_1]

--
Build a little, test a little.


"Iram" wrote:

Hello,
I am using access 2003. I have a table called tbl_Master which contains
fields such as DeviceSN, Name, SlateForRetirement?, Flag1, Address and City.
The unique record is DeviceSN.
The data in this table is old so I performed a walk through of the office
and created a spreadsheet with updated information.
I imported this spreadsheet and called it tbl_ImportedUpdatedInventory

Can you help me with detail instructions on how to create a query that will
upate the master table with the fresh information i.e. Name, Address, City,
SlateforRetirement from the imported table?

Your help is greatly appreciated.

Thanks.
Iram


 




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 09:50 PM.


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