|
-
Feb 23rd, 2003, 11:10 AM
#1
Thread Starter
New Member
Newbie Question: How to change dates in a table
Hi all,
It's my first post here as I just wandered onto this site while searching for some help with one problem I have. I'm not a hardcore coder, just somebody trying to finish a database.
Ok, I have a Payroll database for work. I created my tables, reports, data entry forms, switchboard, and queries in this database with no problem and everything works fine. Access 2000 is pretty forgiving to the newbies. Now, what I want to do is to make a procedure to go through a payroll table and add seven days to every date in the table. I can do "Edit->Replace" just fine, but I'm trying to make this databse idiot-proof for the others in my office who may need to use it. Any help in this matter would be greatly appreciated because I've completely hit a brick wall on this one. Thanks in advance.
-
Mar 3rd, 2003, 09:58 PM
#2
Thread Starter
New Member
Anybody have a clue at all?
...Bueller...Bueller...Bueller...
-
Mar 4th, 2003, 11:08 AM
#3
Create an update query and execute it whenever you need to. Your query would be something like
UPDATE Payroll SET Payroll.DateField = DateAdd("d",7,Payroll.DateField);
-
Mar 4th, 2003, 09:28 PM
#4
Thread Starter
New Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|