Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Access

Command Buttons

 
Jump to:  
 
mjk
PostPosted: Thu Sep 11, 2008 7:18 pm    Post subject: Command Buttons
       
I have two command buttons for clocking In and Out. Everything works great
when i pressed the clock in button it recorded the employee id, dept id and
time in the fields,but when I tried to press my clock out button it doesn't
go back to the last record when I clocked in. I enter the employee id first,
units and then clock out . I used the code below but it created another entry
and does not clear the form for the next user. Each employee clocks in and
out several times a day.

Private Sub Command146_Click()
If IsNull(Me.ClockOut) Then
Me.ClockOut = Now()
DoCmd.GoToRecord , , acAdd
Exit Sub
End If
End Sub
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

Forum Warezowe Fotka Seven Strories Books kalkulator kredytowy Odzyskiwanie danych