S
SF
Hi,
I have a button that would execute code below:
Dim stDocName As String
Dim Stg As String
stDocName = "tblHoro"
Stg = "[Dates] BETWEEN #" & Format(Me.DTPFrom, "Short Date") & "# AND #"
& Format(Me.DTPTo, "Short Date") & "#"
DoCmd.OpenReport stDocName, acPreview, , Stg
Once click, a empty report is generated. What is wrong with the above code?
SF
I have a button that would execute code below:
Dim stDocName As String
Dim Stg As String
stDocName = "tblHoro"
Stg = "[Dates] BETWEEN #" & Format(Me.DTPFrom, "Short Date") & "# AND #"
& Format(Me.DTPTo, "Short Date") & "#"
DoCmd.OpenReport stDocName, acPreview, , Stg
Once click, a empty report is generated. What is wrong with the above code?
SF