Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2012
    Posts
    11

    Validation dependent Text

    I am trying to set up a form so that a text box that says either:-

    Bonus Due
    No Bonus Due
    Bonus Paid



    It will display only one of the three lines of text dependent on whether the individual concerned has worked for 500 days since they started employment. if they've already been paid the bonus then the last line is displayed.

    I am strapped for where to start. Is it a text box I am inserting? I am not sure.

    I know I need to apply validation referring to the Date_Employment_started field but am just unsure where to start initially.

    Any help appreciated.

    Thanks

  2. #2
    R_Badger is offline Knows a few tricks
    Windows XP Access 2003
    Join Date
    Feb 2012
    Location
    Suffolk, UK
    Posts
    262
    You need two fields for this, and you need to decide your update method.You need a text field [Bonus Status], and set the default value to "No Bonus Due"Then you need your [Date_Employment_started] field (The previous statement assumes new entries default =0).Then comes your update method, I personally would use an update query to select [Date_Employment_started]>500 and [Bonus Status]="No Bonus due" to update the [bonus status] to ="Bonus Due"Validation rules are only good for ensuring data is valid at the time of entry, it doesnt update later when the rule would have altered the context.If you need help with writing an update or select query I can provide examples.HTH!

  3. #3
    Join Date
    Jan 2012
    Posts
    11

    Cool Thanks

    If you need help with writing an update or select query I can provide examples.HTH!

    Yes please. I've never done update queries before. I understand what you mean regarding valifdation.

  4. #4
    Join Date
    Jan 2012
    Posts
    11

    Update Query

    Thanks for the help.
    I have created an update query which selects employees who have worked than 500 days. How do I link the Bonus due textbox to the update query? I am unsure what to do next.

    Any help appreciated.

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

Similar Threads

  1. Replies: 4
    Last Post: 08-10-2011, 02:05 PM
  2. Import dependent
    By hawkins in forum Import/Export Data
    Replies: 2
    Last Post: 06-24-2011, 11:15 AM
  3. Dependent Combo Box
    By tigers in forum Forms
    Replies: 1
    Last Post: 06-16-2009, 12:46 PM
  4. Validation on identical text question
    By edrahl in forum Database Design
    Replies: 1
    Last Post: 02-26-2008, 09:38 AM
  5. Validation rule for a text field
    By wasim_sono in forum Forms
    Replies: 4
    Last Post: 03-14-2006, 11:39 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