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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

update query



 
 
Thread Tools Display Modes
  #1  
Old December 17th, 2006, 02:41 AM posted to microsoft.public.access.forms
ducat assignment
external usenet poster
 
Posts: 17
Default update query

I am not sure how an update query works. I have a table named Downinfo that
is my primary table. I have three fields named CDCnum, InmateName, and
InmateHousing. How can I make an update query to import from a txt file and
have the query make changes in the InmateHousing field of the table? I need
to compare the old with the new information, delete any records that are no
longer at the institution, as well as include any new CDCnum, InmateNames and
InmateHousing that are not on the current table. Any advice would more than
welcome.


A little help please

  #2  
Old December 17th, 2006, 04:47 AM posted to microsoft.public.access.forms
Tom Wickerath
external usenet poster
 
Posts: 3,914
Default update query

Hi Ducat,

I need to compare the old with the new information, delete any records that
are no longer at the institution, as well as include any new CDCnum,
InmateNames and InmateHousing that are not on the current table.


Are you telling us that your text file includes all of the current data? If
the answer is yes, then you may just want to run a delete query to clear the
table of all records, followed by an append (not update) query to add records
from a linked text file. This should work okay as long as you do not have any
related child tables.


Tom Wickerath
Microsoft Access MVP

http://www.access.qbuilt.com/html/ex...tributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________

"ducat assignment" wrote:

I am not sure how an update query works. I have a table named Downinfo that
is my primary table. I have three fields named CDCnum, InmateName, and
InmateHousing. How can I make an update query to import from a txt file and
have the query make changes in the InmateHousing field of the table? I need
to compare the old with the new information, delete any records that are no
longer at the institution, as well as include any new CDCnum, InmateNames and
InmateHousing that are not on the current table. Any advice would more than
welcome.


A little help please

  #3  
Old December 17th, 2006, 10:16 AM posted to microsoft.public.access.forms
tina
external usenet poster
 
Posts: 1,997
Default update query

also posted, and answered, in microsoft.public.access.modulesdaovba
newsgroup. please don't multi-post. see
http://home.att.net/~california.db/tips.html#aTip10 for more information.


"ducat assignment" wrote in
message ...
I am not sure how an update query works. I have a table named Downinfo

that
is my primary table. I have three fields named CDCnum, InmateName, and
InmateHousing. How can I make an update query to import from a txt file

and
have the query make changes in the InmateHousing field of the table? I

need
to compare the old with the new information, delete any records that are

no
longer at the institution, as well as include any new CDCnum, InmateNames

and
InmateHousing that are not on the current table. Any advice would more

than
welcome.


A little help please



  #4  
Old December 18th, 2006, 02:31 PM posted to microsoft.public.access.forms
ducat assignment
external usenet poster
 
Posts: 17
Default update query

Hey Tom

Thanks for the response

The txt file has all the current information regarding all the inmates
currently housed here. The problem is most of the extra data is not used in
my database, if fact I only need CDCnum, InmateName and InmateHousing (3
columns out of about 15 columns of data). How can I get access to delete the
unwanted and any duplicate data. After that I need to either append or
update the tblDowninfo.

Thanks for your advise

"Tom Wickerath" wrote:

Hi Ducat,

I need to compare the old with the new information, delete any records that
are no longer at the institution, as well as include any new CDCnum,
InmateNames and InmateHousing that are not on the current table.


Are you telling us that your text file includes all of the current data? If
the answer is yes, then you may just want to run a delete query to clear the
table of all records, followed by an append (not update) query to add records
from a linked text file. This should work okay as long as you do not have any
related child tables.


Tom Wickerath
Microsoft Access MVP

http://www.access.qbuilt.com/html/ex...tributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________

"ducat assignment" wrote:

I am not sure how an update query works. I have a table named Downinfo that
is my primary table. I have three fields named CDCnum, InmateName, and
InmateHousing. How can I make an update query to import from a txt file and
have the query make changes in the InmateHousing field of the table? I need
to compare the old with the new information, delete any records that are no
longer at the institution, as well as include any new CDCnum, InmateNames and
InmateHousing that are not on the current table. Any advice would more than
welcome.


A little help please

 




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 08:37 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.