blue1914mab
Technical User
I, with the assistance of PHV and Rubbernilly, have created a Transaction Log table, that logs every time a user checks out, and returns a patient file. I need to create stats based on that log. On the users personal stats pages, I have 4 unbound text boxes that are designed to hold their individual stats. The first box "Total Patient Records Checked Out, works great using =DCount("Status","PatientInventory","Status='CHECKED-OUT' And EmployeeID = '" & DLookUp("LastName","tblEmployees","UserID='" & [CurrentUser] & "'") & "'"). This is based on table PatientInventory.
the TransactionLog table has 5 fields related to the stats needed.
1)TansactionID=Primary Key
2)PatientID= References Each Patient Recored in the table PatientInventory
3)AssignDate= Date record checked out
4)ReturnDate= Date record returned
5)EmployeeID= Lookup ComboBox based on "LastName" of person who checked the record out.
The formula I need is:
1) Total Records Checked Out (Month)
2) Totla Records Checked Out (Year)
3) Average Checkout Time (Days)
Im not good with code. Thanks why I need much help!!!
Blue
the TransactionLog table has 5 fields related to the stats needed.
1)TansactionID=Primary Key
2)PatientID= References Each Patient Recored in the table PatientInventory
3)AssignDate= Date record checked out
4)ReturnDate= Date record returned
5)EmployeeID= Lookup ComboBox based on "LastName" of person who checked the record out.
The formula I need is:
1) Total Records Checked Out (Month)
2) Totla Records Checked Out (Year)
3) Average Checkout Time (Days)
Im not good with code. Thanks why I need much help!!!
Blue