Microsoft
Software
Hardware
Network
Question : Calculate Weekends
Hi,
I have a problem with a function.
I produce records (35000) and the whole process costs about 4 minutes time what is normal.
Now i had to insert the following module and the process cost about 11 minutes.
Public Function aantal(van As Date, tot As Date) As Long
Dim i As Date
For i = van To tot
Select Case Weekday(i)
Case 2, 3, 4, 5, 6
aantal = aantal + 1
End Select
Next i
End Function
The difference between dates Van (from) and tot (To) can be 3 years.
Is there a way to let this module go faster?
Tx
Answer : Calculate Weekends
Try removing the read-only attribute using diskpart -
http://www.t3chworks.com/i
ndex.php?p
=2_1
Lee
Random Solutions
Count number of times a value appears within rows returned
Sharepoint Foundation 2010
where can i find 'ZendDebugger.so' so I can debug my php applications remotely?
Pulling Max Date But Keeping Null Value if a Record Has one
Efficient SQL Data Type
gif not showing in IE
SQL Query
HP z400 workstation crashes when I insall win 2003 R2 64 bit.
IIS Website Only Accessible From Localhost (Server 2008 R2)
can thi s be done in CSS or HTML