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 > Data Access, Manipulation & Batch Languages > Delphi, C etc > batch update dateAdd Questions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-01-04, 16:41
Rhea1986 Rhea1986 is offline
Registered User
 
Join Date: Mar 2004
Posts: 1
batch update dateAdd Questions

I have a MS Access database with 3 dates and 4 categories. I want to update the date according to category when the program opens. Category a=30 days, b=60 days, c=90 days and d=120 days. I want to search for any date < now and update according to the category. I can't seem to get the sytax correct on this to update. The second part of the problem is I want to move the old date to one of the other date fields. Here is an example of what I mean:

If nextcontact < now and category=a then
move nextcontact to lastcontact and
dateAdd("w", 30, now) to nextcontact

That is not the sytax used but to show you what I am trying to do. I need to do this for each category each time the program is opened. I would greatly appreciate any advice I can get.
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