|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Forcast date
I dont know who helped me with this but I have a question of how to change this code:
Right now it takes a date, goes out 2 weeks + a day then grabs the next tuesday. What I need is to forcast out two WEEKENDS then grab the next tuesday... Not two weeks but two weekends....then the next tuesday. Any thoughts THANK YOU ALL FOR YOUR HELP AND SUPPORT |
|
#2
|
|||
|
|||
|
Think I got it one second
Might have it...will get back... I am going out only 7 days instead of 14 ....dont know if this actually fixes it untill i try it on every days of the week... Code:
Dim X2 As Integer
Dim Y2 As Integer
Dim NextDate As Date
X2 = 7
'X2 = 14
Y2 = 0
Do While Y2 <> 3
X2 = X2 + 1
Y2 = Weekday(CDate(Me.cbo_92) + X2)
Loop
NextDate = CDate(Me.cbo_92) + X2
MsgBox NextDate
|
|
#3
|
|||
|
|||
|
No that was not it....
What i need it to do is count 2 saturdays or sundays then grab the next tuesday... Any thoughts? THanks |
|
#4
|
|||
|
|||
|
I think I got it to work...
I used X = 10 I tested everyday of the week...Sun-Fri it projects the twwo weeks... Sat it goes one week further because it is already in the weekend, and I want to go two weekends into the future... Thoughts? |
|
#5
|
||||
|
||||
|
I'm the one who helped you on this before. I have a lot of work to do this afternoon, I might be able to get to it tonight.
But think in terms of the weekday function Sat = 7, so if it's sat, add 17? Again, if I get time later, I will see if I can get a quick function up for you.
__________________
Did I help you? If so gimme rep by clicking on the at the top right corner of this post ![]() Madness does not always howl. Sometimes, it is the quiet voice at the end of the day saying, "Hey, is there room in your head for one more?" |
|
#6
|
|||
|
|||
|
I ran through it a few times and it seems that if I Make X=10 then I satisfy what I am after...
If I choose a date...I want two weekends to pass then grab the next Tuesday... I havent gotten it fail yet so I think I got it... Just looking for someones elses eyes on this.... Thanks sbenj69 |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft Access Help > Forcast date |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|