Microsoft
Software
Hardware
Network
Question : lookup table and stop a form opening if more than two entries match a criteria
Hi EE
I have a button on my switch board that when you click it it opens a form.
i want the button to look up a table 'tblTimeSheet' and look in the field 'TimeLogedOut'
and see if two rows on todays date match the Words "Auto Log Out After BREAK" which is in field 'Reason'
I need it to filter the look up by EmpID on the table against [Forms]![frmGENSwitchboard
]![EmpID]
REASON:
The switchboard allows a member of staff to take 2 breaks a day. When they go on a break they have to click the break button. i want the button to recognise when a member of staff has pressed the button Twice. and then if they try and press it a third time it has a message that says "you have already taken your allocated break time"
The ID of the staff is always on the switchboard [Forms]![frmGENSwitchboard
]![EmpID]
The table above records everytime they log in and out of the database and also records each break they take.
Answer : lookup table and stop a form opening if more than two entries match a criteria
If DCount("TimeLogedOut", "tblTimeSheet", "[TimeLogedOut] = #" & Date & "# And empID=" & [Forms]![frmGENSwitchboard
]![EmpID])
> 1 Then
MsgBox "you have already taken your allocated break time"
Exit Sub
Random Solutions
Windows XP Taskbar won't auto-hide
Best route to split VMDK
SCCM Scan agent fails with Scan Failed for ToolUniqueID with error 0x80070005
How send an array by url with php???????
Anyone have a write-up of how to use BESR 2010 and Bitlocker together?
Browser redirecting to various sites but HijackThis and Malwarebytes scans seem clean
When I encrypt/encode a string using codeigniter encryption class, it is different everytime, why?
Delphi 6 not recompiling .pas files
send mail to undisclosed receipent in lotus notes
How to parse XML string in Oracle procedure ?