Ade F
Avid Listener
- Local time
- Today, 23:21
- Joined
- Jun 12, 2003
- Messages
- 97
I'm trying to create this Dcount procedure to maximize access from the task bar should a new note become present in the job history table. It looks to me that if the ID value has increased then this should in theory bring up the page. The timer event is set to thirty seconds. With this code working it would help to gain the users attention in regards to important notes / messages.
It appears that after the alloted time the Dcount hidden field increments by 1 but the form does not maximize? . Having initially tested / placed the refresh command directly after the
Public Sub Form_Timer()
line the screen refreshes fine, it just seems that the If statement is not being executed after the initial txtHiddenCount is defined. If anyone should have ideas or a workaround solution then this would be much appreciated.
Public Sub Form_Timer()
Me.txtHiddenCount = DCount("[ID]", "job history")
If DCount("[ID]", "job history") > Me.txtHiddenCount Then
DoCmd.RunCommand acCmdAppMaximize
Me.txtHiddenCount = DCount("[ID]", "job history")
End If
End Sub
It appears that after the alloted time the Dcount hidden field increments by 1 but the form does not maximize? . Having initially tested / placed the refresh command directly after the
Public Sub Form_Timer()
line the screen refreshes fine, it just seems that the If statement is not being executed after the initial txtHiddenCount is defined. If anyone should have ideas or a workaround solution then this would be much appreciated.
Public Sub Form_Timer()
Me.txtHiddenCount = DCount("[ID]", "job history")
If DCount("[ID]", "job history") > Me.txtHiddenCount Then
DoCmd.RunCommand acCmdAppMaximize
Me.txtHiddenCount = DCount("[ID]", "job history")
End If
End Sub