PC Review


Reply
Thread Tools Rate Thread

Date Loop Help

 
 
jarvisrose
Guest
Posts: n/a
 
      12th Apr 2006
I am very new to VBA. I would like to do a few of things. I think it is
pretty complicated to do what I am wanting to do, I certainly don't know how
to do it. I have a list of dates and an action code for each date that get
generated automatically in a system that I didn't write and can't change. I
have a computer program written by somebody else that performs a particular
action on a particular date based on an action code. However, it performs it
the evening before the actual item is due. So, the date generated from the
other system is one day off. Plus, not every day of the month is represented
on that list so I have to add dates to the list. Also, the codes in one
system aren't the same as the other system. I am currently doing a lot of
manual work to get all of these things changed.

I would like to have some VBA code go in and change the actions codes from 1
code to another. For instance All 3s become 4s, then all 2s become 3s, and
finally all 1s become 2s. Then I want every date that is not represented on
the list to be inserted into the list. (i.e. 4/2/2006, 4/5/2006 becomes
4/2/2006, 4/3/2006, 4/4/2006, 4/5/2006) Then, all of those dates that had
been inserted should be assigned an action code of 1. I would then like the
entire list of dates to subtract 1 day. (So 4/2/2006 becomes 4/1/2006 etc).
Finally, I need to have the list in a tab delimite text file so I can copy it
into my other computer system.
 
Reply With Quote
 
 
 
 
jarvisrose via AccessMonster.com
Guest
Posts: n/a
 
      13th Apr 2006
I figured out how to do this without using VBA

jarvisrose wrote:
>I am very new to VBA. I would like to do a few of things. I think it is
>pretty complicated to do what I am wanting to do, I certainly don't know how
>to do it. I have a list of dates and an action code for each date that get
>generated automatically in a system that I didn't write and can't change. I
>have a computer program written by somebody else that performs a particular
>action on a particular date based on an action code. However, it performs it
>the evening before the actual item is due. So, the date generated from the
>other system is one day off. Plus, not every day of the month is represented
>on that list so I have to add dates to the list. Also, the codes in one
>system aren't the same as the other system. I am currently doing a lot of
>manual work to get all of these things changed.
>
>I would like to have some VBA code go in and change the actions codes from 1
>code to another. For instance All 3s become 4s, then all 2s become 3s, and
>finally all 1s become 2s. Then I want every date that is not represented on
>the list to be inserted into the list. (i.e. 4/2/2006, 4/5/2006 becomes
>4/2/2006, 4/3/2006, 4/4/2006, 4/5/2006) Then, all of those dates that had
>been inserted should be assigned an action code of 1. I would then like the
>entire list of dates to subtract 1 day. (So 4/2/2006 becomes 4/1/2006 etc).
>Finally, I need to have the list in a tab delimite text file so I can copy it
>into my other computer system.


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...dules/200604/1
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Loop through query and export records on a date by date basis asseperate files... Need2Know Microsoft Access Queries 5 28th Oct 2009 03:10 AM
Transfer Date Loop Mishelley Microsoft Excel Programming 3 13th Jan 2009 08:36 PM
date finding loop. Heera Microsoft Excel Programming 0 12th May 2008 11:12 AM
RE: How can I make For-Next loop with date? =?Utf-8?B?SlMyMDA0UjY=?= Microsoft Excel Programming 0 14th Oct 2005 05:20 AM
Date selection loop Roger Microsoft Excel Programming 17 26th Sep 2004 12:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:21 PM.