S
sam
I'm using the following to show a day of the week alongside the date in a
report. I am wondering if this should be done in the report or done in the
query... maybe even a function to return the answer to the query? Any
opinions on the best way to do it?
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim DOW As String
Select Case Weekday(txtDemoDt)
Case 1
DOW = "Sun"
Case 2
DOW = "Mon"
Case 3
DOW = "Tue"
Case 4
DOW = "Wed"
Case 5
DOW = "Thu"
Case 6
DOW = "Fri"
Case 7
DOW = "Sat"
End Select
Me.txtDOW = DOW
End Sub
report. I am wondering if this should be done in the report or done in the
query... maybe even a function to return the answer to the query? Any
opinions on the best way to do it?
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim DOW As String
Select Case Weekday(txtDemoDt)
Case 1
DOW = "Sun"
Case 2
DOW = "Mon"
Case 3
DOW = "Tue"
Case 4
DOW = "Wed"
Case 5
DOW = "Thu"
Case 6
DOW = "Fri"
Case 7
DOW = "Sat"
End Select
Me.txtDOW = DOW
End Sub