Report Overview
•••
This report has one tab and provides a listing of each
time a specified logged in user opened and closed a
HuBERT application module during a specified time
period.
Tab 1 – Access Log: A list of time periods grouped by
date.
Staff Access Log
Infoview Report Template Guidance –
STAFF MANAGEMENT
Notes
*This report CANNOT BE RUN for any dates
prior to 7/1/13 because the Agency ID and Clinic ID
were not stored correctly in the database (they
were truncated to 2 digits – this was fixed on
7/1/13). Records will only display in the report output starting with 7/1/13. If information prior to 7/1/13 is
required, please contact the State Office for assistance.
*Times in the Opened Module and Closed Module columns may overlap if a user was logged into multiple
machines during the same date and times.
*The system records each time a user opens and closes (and logs in/logs out of) a HuBERT application
module. A row displays each times this occurs.
*The Agency is the agency the user is assigned to, or if assigned to multiple agencies, selected when the
application first opens (on the Location pop-up).
*The Clinic ID is the clinic the user selected when the application first opened (on the Location pop-up).
Tab 1 – Access Log
1|Page
MN Department of Health WIC Program
Staff Access Log
•••
Prompt(s)
TABLE
FIELD
OPERATOR
VALUE
PROMPT/DEFINITION
Enter 3-digit Agency ID.
SYSTEMACCESSLOG
Agencyid
Equal to
###
SYSTEMACCESSLOG
Userid
Equal to
username
The Agency the user is assigned to, or
selected in the Location pop-up,
when the application first opened.
Enter username.
The username the staff person uses to
log into HuBERT.
Enter Start Date.
SYSTEMACCESSLOG
Dateused
Between
mm/dd/yy
The beginning date of the time
period during which the user logged
into HuBERT.
Enter End Date.
SYSTEMACCESSLOG
Dateused
And
mm/dd/yy
The end date of the time period
during which the user logged into
HuBERT.
Tab 1 – Access Log
Columns
•
•
•
•
•
Clinic ID (SYSTEMACCESSLOG.Servicesiteid)
Opened Module (SYSTEMACCESSLOG.Applicationstart) See VARIABLES
Closed Module (SYSTEMACCESSLOG.Applicationend) See VARIABLES
Module (SYSTEMACCESLOG.Applicationname)
Machine ID (SYSTEMACCESSLOG.Machineid)
Sorted by
Opened Module (Ascending)
Grouped by
Date (SYSTSEMACCESSLOG.Dateused) - Ascending
2|Page
Staff Access Log
•••
Technical Notes
Notes
The Applicationstart and Applicationend times are stored as military time and text. In order to convert to 1-hour time,
variables Opened Module and Closed Module were created. These variables convert the text to a date, format the date to a
text string, and then format it back to a date. A random date displays in the column until the output is formatted using
the right-click menu, selecting date/time, and selecting the 8:45 PM format. It should also be noted that once the output is
in this format, the time output sorts correctly.
A link had to be manually created between the SYSTEMACCESSLOG and AGENCY tables.
Variables
Opened Module =ToDate(FormatDate(ToDate([Applicationstart];"HHmm");"hh:mm a");"hh:mm a")
Closed Module =ToDate(FormatDate(ToDate([Applicationend];"HHmm");"hh:mm a");"hh:mm a")
Formulas
Title (report header) ="Staff HuBERT Access Logs - " + UserResponse("Enter Username:")
Agency (report header) =[Name] + " (" + [Agencyid] + ")"
Report Dates (report header) ="Report Dates: " + FormatDate(ToDate(UserResponse("Enter Start Date:");"M/d/yyyy
hh:mm:ss A");"MM/dd/yyyy") + " - " + FormatDate(ToDate(UserResponse("Enter End Date:");"M/d/yyyy hh:mm:ss
A");"MM/dd/yyyy")
Date (group header) ="Date: " + [Dateused]
SQL (changes are highlighted)
Access Query
SELECT
dbo.SYSTEMACCESSLOG.AGENCYID,
dbo.SYSTEMACCESSLOG.SERVICESITEID,
dbo.AGENCY.NAME,
dbo.SYSTEMACCESSLOG.APPLICATIONSTART,
dbo.SYSTEMACCESSLOG.APPLICATIONEND,
dbo.SYSTEMACCESSLOG.APPLICATIONNAME,
dbo.SYSTEMACCESSLOG.USERID,
dbo.SYSTEMACCESSLOG.DATEUSED,
dbo.SYSTEMACCESSLOG.MACHINEID
FROM
3|Page
Staff Access Log
•••
dbo.SYSTEMACCESSLOG INNER JOIN dbo.AGENCY ON
(dbo.SYSTEMACCESSLOG.AGENCYID=dbo.AGENCY.AGENCYID)
WHERE
(
dbo.SYSTEMACCESSLOG.AGENCYID = @prompt('Enter 3-digit Agency ID:','A','Dbo
Systemaccesslog\Agencyid',Mono,Free,Persistent,,User:0)
AND
dbo.SYSTEMACCESSLOG.USERID = @prompt('Enter Username:','A','Dbo
Systemaccesslog\Userid',Mono,Free,Persistent,,User:1)
AND
dbo.SYSTEMACCESSLOG.DATEUSED BETWEEN @prompt('Enter Start Date:','D','Dbo
Systemaccesslog\Dateused',Mono,Free,Persistent,,User:2) AND @prompt('Enter End Date:','D','Dbo
Systemaccesslog\Dateused',Mono,Free,Persistent,,User:3)
)
4|Page
© Copyright 2026 Paperzz