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  

2 linked rookie Q's - filling fields and moving records



 
 
Thread Tools Display Modes
  #1  
Old May 8th, 2009, 02:40 PM posted to microsoft.public.access.gettingstarted
Purpleman
external usenet poster
 
Posts: 1
Default 2 linked rookie Q's - filling fields and moving records

I do a weekly mailmerge to 200+ records.

1st question:
After mailing, I manually enter the mailing date into the field DateSent.
Can I enter the date into all the records at same time? Currently I do it by
copy and paste 1 by 1. (told you I was a rookie).

2nd question:
After doing the above, can I automate moving the records with a completed
DateSent field to another table in the same database?

  #2  
Old May 8th, 2009, 04:07 PM posted to microsoft.public.access.gettingstarted
Arvin Meyer MVP
external usenet poster
 
Posts: 640
Default 2 linked rookie Q's - filling fields and moving records

"Purpleman" u51771@uwe wrote in message news:95c5cca200f88@uwe...
I do a weekly mailmerge to 200+ records.

1st question:
After mailing, I manually enter the mailing date into the field DateSent.
Can I enter the date into all the records at same time? Currently I do it
by
copy and paste 1 by 1. (told you I was a rookie).


Assuming you have a field for knowing which records to mail (Mailed)

UPDATE tblMyData SET tblMyData.DateSent = Date()
WHERE (((tblMyData.DateSent) Is Null) AND ((tblMyData.Mailed)=True));

where tblMyData is the name of your table.

2nd question:
After doing the above, can I automate moving the records with a completed
DateSent field to another table in the same database?


Why would you want to? The Mailed field is more relational than using
separate tables to store the same data. But to answer your question, yes,
run an append query and a delete query.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


  #3  
Old May 8th, 2009, 04:27 PM posted to microsoft.public.access.gettingstarted
Philip Herlihy
external usenet poster
 
Posts: 292
Default 2 linked rookie Q's - filling fields and moving records

Purpleman wrote:
I do a weekly mailmerge to 200+ records.

1st question:
After mailing, I manually enter the mailing date into the field DateSent.
Can I enter the date into all the records at same time? Currently I do it by
copy and paste 1 by 1. (told you I was a rookie).

2nd question:
After doing the above, can I automate moving the records with a completed
DateSent field to another table in the same database?


For the first one, try an "update query". First, make a query which
selects all the records you'd like to update. Then click the Query Type
button in the toolbar to turn it into an Update query, and put the date
- or something that returns today's date: =now() - into the "update to"
item for that field.

I'd question whether it's a good idea to move the records from one table
to another. If you ever need to search, you'd be searching two tables
instead of one. Why not leave them in place, and use an additional
field (how about DateSent) to distinguish these records? In general,
you'd have one table for one "type of thing" - makes life easier down
the road. If you had to do this (e.g. daft boss) then you'd want an
"append" query together with a corresponding "delete" query.

HTH

Phil, London
  #4  
Old May 15th, 2009, 10:56 AM posted to microsoft.public.access.gettingstarted
purpleman
external usenet poster
 
Posts: 4
Default 2 linked rookie Q's - filling fields and moving records

Understood. Thank you both for taking the time.

"Philip Herlihy" wrote:

Purpleman wrote:
I do a weekly mailmerge to 200+ records.

1st question:
After mailing, I manually enter the mailing date into the field DateSent.
Can I enter the date into all the records at same time? Currently I do it by
copy and paste 1 by 1. (told you I was a rookie).

2nd question:
After doing the above, can I automate moving the records with a completed
DateSent field to another table in the same database?


For the first one, try an "update query". First, make a query which
selects all the records you'd like to update. Then click the Query Type
button in the toolbar to turn it into an Update query, and put the date
- or something that returns today's date: =now() - into the "update to"
item for that field.

I'd question whether it's a good idea to move the records from one table
to another. If you ever need to search, you'd be searching two tables
instead of one. Why not leave them in place, and use an additional
field (how about DateSent) to distinguish these records? In general,
you'd have one table for one "type of thing" - makes life easier down
the road. If you had to do this (e.g. daft boss) then you'd want an
"append" query together with a corresponding "delete" query.

HTH

Phil, London

 




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:32 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.