S
Shri
Hi,
I have a below function in a form.
****
Private Function OfficeClosed(TheDate) As Integer
Dim Date_export As Date
OfficeClosed = False
' Test for Saturday or Sunday.
If Weekday(TheDate) = 2 Then
OfficeClosed = True
Date_export = Date - 1
Else
Date_export = Date
End If
End Function
****
I need to use the variable "Date_export" defined above in a sub procedure.
I have below two lines of code in a sub proc. But the code doesn't work.
****
Call OfficeClosed(Date)
exportlocation.Value = RPath & rptNam & "_" & Date_export & ".rtf"
******
The date is not displayed in the field "exportlocation". I would appreciate
any help on this.
Thanks.
I have a below function in a form.
****
Private Function OfficeClosed(TheDate) As Integer
Dim Date_export As Date
OfficeClosed = False
' Test for Saturday or Sunday.
If Weekday(TheDate) = 2 Then
OfficeClosed = True
Date_export = Date - 1
Else
Date_export = Date
End If
End Function
****
I need to use the variable "Date_export" defined above in a sub procedure.
I have below two lines of code in a sub proc. But the code doesn't work.
****
Call OfficeClosed(Date)
exportlocation.Value = RPath & rptNam & "_" & Date_export & ".rtf"
******
The date is not displayed in the field "exportlocation". I would appreciate
any help on this.
Thanks.