alkrm
Registered User.
- Local time
- Today, 09:28
- Joined
- Aug 13, 2003
- Messages
- 39
Can any one help with this:
i havetext box where the user enter the quarter and year , and he ll get the report . there are two conditions, if the report is before the 3rd Quarter 2004 Report1 has to show, if after Q3 2003 then Report2 Has to show.
am stuck with the Quarter Declaration.as the user will input for example "q4 2002"
this code am using for the command button
Dim befor As String
Dim after As String
Dim s As Date
before = "Report1"
after = "Report2"
s = q3 2004 'My Problem
If Forms!quarter!Text1 < s Then
DoCmd.OpenReport before, acPreview
ElseIf Forms!quarter!Text1 >= s Then
DoCmd.OpenReport after, acViewPreview
End If
i havetext box where the user enter the quarter and year , and he ll get the report . there are two conditions, if the report is before the 3rd Quarter 2004 Report1 has to show, if after Q3 2003 then Report2 Has to show.
am stuck with the Quarter Declaration.as the user will input for example "q4 2002"
this code am using for the command button
Dim befor As String
Dim after As String
Dim s As Date
before = "Report1"
after = "Report2"
s = q3 2004 'My Problem
If Forms!quarter!Text1 < s Then
DoCmd.OpenReport before, acPreview
ElseIf Forms!quarter!Text1 >= s Then
DoCmd.OpenReport after, acViewPreview
End If