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
Not able to login as root after PAM configuration
Add Small Business Server to Existing Server 2003 Domain
How to add line feed and carriage return to bullets in a string
My web page has errors and doesn't work using IE8
Can not convert a mssql query to a mysql query
How do I create a report in CRM 4.0 that details all activities by all users?
How do I identify monitor device display settings?
asp.net I have this msql select that is returning an error Incorrect syntax near '.'. I cannot see where its.
Creating and applying templates
fn_my_permissions in sql 2000?