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  dBforums > PC based Database Applications > Microsoft Access > Update Query: Copy field based on the previous week

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-06-12, 15:53
sidbrown sidbrown is offline
Registered User
 
Join Date: Jan 2012
Posts: 7
Update Query: Copy field based on the previous week

Hi,

I have a student database, with class records based on week numbers. I can assign students to their classes for each week of the year.

I am now trying to run an update query which will copy the previous week's classes. I.e: For a particular week, i want it to look at the previous week and copy the class number for each matching Student ID.

Can anyone help!

Thanks
Reply With Quote
  #2 (permalink)  
Old 02-08-12, 04:21
Sinndho Sinndho is offline
Registered User
 
Join Date: Mar 2009
Posts: 3,446
Quote:
Originally Posted by sidbrown View Post
I am now trying to run an update query which will copy the previous week's classes. I.e: For a particular week, i want it to look at the previous week and copy the class number for each matching Student ID.
If you want to copy (i.e. create new records from existing ones), it's an INSERT query, not an UPDATE.

Please provide information about the table(s) involved (name, columns names, data type).
__________________
Have a nice day!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On