Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    jcaptchaos2 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Apr 2011
    Posts
    36
    Ok I tried this and it does not seem to be working or at least it is not putting the shift in the table,


    Code:
    Private Sub EmployeeNumber_AfterUpdate()
    Shift = DLookup("[Shift]", "[employeelistingjac]", "[EmployeeNumber]= " & [Forms]![Paroll Time on]![EmployeeNumber])
    End Sub

  2. #17
    jcaptchaos2 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Apr 2011
    Posts
    36
    Sorry it works fine I entered an employee number that wasn't in the employee table so there was no shift
    Here is what is working, thanks so much for your help I'm sure I will need it often as I'm taskes to build this database and am just learning

    Code:
    Private Sub EmployeeNumber_AfterUpdate()
    Shift = DLookup("[Shift]", "[employeelistingjac]", "[EmployeeNumber]= " & [Forms]![Paroll Time on]![EmployeeNumber])
    End Sub

  3. #18
    jcaptchaos2 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Apr 2011
    Posts
    36
    One other question now that I'm ready to put this on the shop floor for testing, I know how to get the right form to open when the db is opened but is there a list of everything to turn off so just the opening for pops up and not all the tool bar stuff?

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. DLookup
    By neil45156 in forum Forms
    Replies: 1
    Last Post: 04-11-2011, 11:31 AM
  2. dlookup help
    By gsantacruz in forum Programming
    Replies: 9
    Last Post: 10-11-2010, 11:46 AM
  3. DLookup()
    By jgelpi16 in forum Programming
    Replies: 2
    Last Post: 09-15-2010, 07:20 AM
  4. Need help with dlookup.
    By Keith in forum Database Design
    Replies: 8
    Last Post: 05-24-2010, 06:28 PM
  5. Dlookup??
    By Vikki in forum Access
    Replies: 4
    Last Post: 02-16-2010, 07:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums