Hi all
I have a form named "Form1" which has two textboxes "Textbox1" & Textbox3" which is ment to enter dates & also a command button "command9"
I have a report named "Report1" which is based on query. The query is working fine.
what i want to do is when the command button is click i want to load the report between the two given dates in the "textbox1" & "Textbox3"
I have tried but is not working. I have used the following codes
Private Sub Command9_Click( )
Dim stDocName
Dim stLinkCriteria
stDocName = "Report1"
DoCmd.OpenRepor t stDocName, , , stLinkCriteria
End Sub
I hope i am missing something in the codes.
Please help me out
Regards
Manoj.
I have a form named "Form1" which has two textboxes "Textbox1" & Textbox3" which is ment to enter dates & also a command button "command9"
I have a report named "Report1" which is based on query. The query is working fine.
what i want to do is when the command button is click i want to load the report between the two given dates in the "textbox1" & "Textbox3"
I have tried but is not working. I have used the following codes
Private Sub Command9_Click( )
Dim stDocName
Dim stLinkCriteria
stDocName = "Report1"
DoCmd.OpenRepor t stDocName, , , stLinkCriteria
End Sub
I hope i am missing something in the codes.
Please help me out
Regards
Manoj.
Comment