Michael, Thank you very much for your help. I have one more question though. I was just wondering if there's any way I can view the report in Manager instead of running your query in Administrator. Because at the store level, I can just view the following report at Store Manager(which was found in one of the old posts in this forum). I just want to view this same report in HQ Manager (with an additional column showing store names). How can I modify this report to add store name column?
Thank you.
//--- Report Summary --- //
Begin ReportSummary
ReportType = reporttypeCustom
ReportTitle = "No Sale List"
PageOrientation = pageorientationPortrait
ShowDateTimePicker = False
OutLineMode = True
Groups = 0
GroupDescription = "Total"
DisplayLogo = False
LogoFileName = "MyLogo.bmp"
ProcedureCall = ""
TablesQueried = <BEGIN>
FROM NonTenderTransaction
LEFT JOIN Cashier WITH(NOLOCK) ON NonTenderTransaction.CashierID = Cashier.ID
LEFT JOIN ReasonCode WITH(NOLOCK) ON NonTenderTransaction.ReasonCodeID = ReasonCode.ID
<END>
SelCriteria = ""
GroupBy = ""
SortOrder = "NonTenderTransaction.[Time]"
End ReportSummary
//--- Title Rows ---//
Begin TitleRow
Text = "<Store Name>"
Font = "Arial"
FontBold = True
FontSize = 16
Color = "Blue"
End TitleRow
Begin TitleRow
Text = "<Report Title>"
Font = "Arial"
FontBold = True
FontSize = 12
Color = "Black"
End TitleRow
Begin TitleRow
Text = "As Of: <Report Date>"
Font = "Arial"
FontBold = True
FontSize = 10
Color = "Black"
End TitleRow
//--- Filters ---//
Begin Filter
FieldName = "NonTenderTransaction.Time"
FilterOp = reportfilteropBetween
FilterLoLim = "<WeekStart>"
FilterHilim = "<Today>"
End Filter
//--- Columns ---//
Begin Column
FieldName = "NonTenderTransaction.BatchNumber"
DrillDownFieldName = ""
DrillDownReportName = ""
Title = "Batch # "
VBDataType = vbLong
Formula = ""
ColHidden = False
ColNotDisplayable = False
FilterDisabled = False
ColWidth = 1000
GroupMethod = groupmethodNone
ColFormat = ""
ColAlignment = flexAlignLeftCenter
End Column
Begin Column
FieldName = "NonTenderTransaction.Time"
DrillDownFieldName = ""
DrillDownReportName = ""
Title = "Time"
VBDataType = vbDate
Formula = ""
ColHidden = True
ColNotDisplayable = False
FilterDisabled = False
ColWidth = 1000
GroupMethod = groupmethodNone
ColFormat = ""
ColAlignment = flexAlignRightCenter
End Column
Begin Column
FieldName = "Time"
DrillDownFieldName = ""
DrillDownReportName = ""
StoreIDFieldName = ""
Title = "Time"
VBDataType = vbString
Formula = "CONVERT(nvarchar,NonTenderTransaction.Time,20)"
ColHidden = False
ColNotDisplayable = False
FilterDisabled = True
ColWidth = 1875
GroupMethod = groupmethodNone
ColFormat = ""
End Column
Begin Column
FieldName = "Cashier.Name"
DrillDownFieldName = "Cashier.Name"
DrillDownReportName = ""
StoreIDFieldName = ""
Title = "Cashier"
VBDataType = vbString
Formula = ""
ColHidden = False
ColNotDisplayable = False
FilterDisabled = False
ColWidth = 1500
GroupMethod = groupmethodNone
ColFormat = ""
ColAlignment = flexAlignLeftCenter
End Column
Begin Column
FieldName = "NonTenderTransaction.Comment"
DrillDownFieldName = ""
DrillDownReportName = ""
Title = "Comment"
VBDataType = vbString
Formula = ""
ColHidden = True
ColNotDisplayable = False
FilterDisabled = False
ColWidth = 1200
GroupMethod = groupmethodNone
ColFormat = ""
ColAlignment = flexAlignLeftCenter
End Column
Begin Column
FieldName = "ReasonCode.Code"
DrillDownFieldName = ""
DrillDownReportName = ""
StoreIDFieldName = ""
Title = "Reason Code"
VBDataType = vbString
Formula = ""
ColHidden = False
ColNotDisplayable = False
FilterDisabled = False
ColWidth = 1665
GroupMethod = groupmethodCount
ColFormat = ""
ColAlignment = flexAlignLeftCenter
End Column