I am using this code to get the results of the last time a bar code scan was performed.
SELECT Max([Date]+[timeMS]) AS lastScanEvent, Format$(Now()-Max([Date]+[Timems]),"hh:nn:ss") AS Ago
FROM tbl_FSACDATA;
How can I get these results to display on the switchboard, and continually update? The switchboard and query do not have a common field.
I have tried to use a subform. That did work, but did not update the subform.
I currently have a clock displayed on the switchboard in a label and would like to incorporate something similar to that, or even better into it.
The clock display code is:
Private Sub Form_Timer()
Me!lblClock.Caption = Format(Now, "dddd, mmm d yyyy, hh:mm:ss AMPM")
End Sub
Private Sub cmdClockStart_Click()
Me.TimerInterval = 1000
End Sub
Private Sub cmdClockEnd_Click()
Me.TimerInterval = 0
End Sub
Thanks in Advance.
SELECT Max([Date]+[timeMS]) AS lastScanEvent, Format$(Now()-Max([Date]+[Timems]),"hh:nn:ss") AS Ago
FROM tbl_FSACDATA;
How can I get these results to display on the switchboard, and continually update? The switchboard and query do not have a common field.
I have tried to use a subform. That did work, but did not update the subform.
I currently have a clock displayed on the switchboard in a label and would like to incorporate something similar to that, or even better into it.
The clock display code is:
Private Sub Form_Timer()
Me!lblClock.Caption = Format(Now, "dddd, mmm d yyyy, hh:mm:ss AMPM")
End Sub
Private Sub cmdClockStart_Click()
Me.TimerInterval = 1000
End Sub
Private Sub cmdClockEnd_Click()
Me.TimerInterval = 0
End Sub
Thanks in Advance.