Results 1 to 3 of 3
  1. #1
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2002
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383

    Set Employee On Call Order and Rotate

    I have a employees form and on it there are fields named On Call which is a yes/no and Order which is a number and also of course their name and employeeID

    I can easily set their on call status by using the yes/no field and maybe enter a number manually into the field Order which is set to be indexed with no duplicates. How can I automate this? Also when its time to start their on call rotation, how would I approach this?

    Fields in db are OnCall, EmployeeID,Order, and EmpName.

    Thanks,

    I updated the db and attached.
    Attached Files Attached Files
    Last edited by burrina; 10-23-2012 at 01:01 PM. Reason: Attach zip db

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    You haven't given enough information about what must happen automatically.
    You will have to explain the logic behind how you want to automate.

  3. #3
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2002
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    I have 3 fields on my form
    ExpName
    Order
    On Call

    I have set in place a increment counter for the order field which is a number data type
    On the On Current Procedure here is my code
    If Not IsNull(Me.Order) Then
    Me.OnCall = True
    Else
    Me.OnCall = False
    End If


    And on the before update event of the field named Order here is my code

    Nz (DMax("Order", "Employees")) + 1


    I want the form to accomplish a numerically incremental counter so I can set the employees
    on call order automatically. Also if the user tries to use one field without the other one
    having data in it then it will not be allowed.

    I also want to be able to re-set this counter at some point since the employees will need to
    start over in their on call order and maybe I will need a way to adjust this.

    Any thoughts if I am doing this right or is there a better way? Hope I have explained it better,sorry for my lack of communication skills. my brain does not work most of the time. I have Multiple Sclerosis and I am doing this to try and keep my brain active. I wrote this db over 12 yrs ago.

    Thanks,

Please reply to this thread with any new information or opinions.

Similar Threads

  1. How to rotate a label on an Access form.
    By dougie in forum Queries
    Replies: 2
    Last Post: 07-03-2012, 11:45 PM
  2. Replies: 8
    Last Post: 06-06-2012, 12:28 PM
  3. Replies: 4
    Last Post: 05-17-2012, 03:02 PM
  4. Rotate a Picture
    By ksmith in forum Access
    Replies: 4
    Last Post: 08-16-2010, 01:55 PM
  5. Rotate picture? or break report or what?
    By cowboy in forum Reports
    Replies: 2
    Last Post: 02-22-2010, 12:08 PM

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