Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 23rd, 2006, 12:37 PM
Registered User
 
Join Date: Oct 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Create a validation rule

I need to create some type of rule of exception for when a certain client is pulled up the standard calculation is different due to the geographical area.
In other words.
when a report is created for our employees in India - their work week should have the calculation of 52*45 in the total fields in place of the 52*40(52 weeks * 40 hours) for the US employees.
the calculation for the returned value is only in the final field created in the report. How do I add the exception to the report so that the valus will reflect for India 9-hour work days as opposed to 8 hour work day,(which is the default)

  #2 (permalink)  
Old October 24th, 2006, 07:00 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Hi,

   Without seeing your database structure, I would propose an extra field in the Employee table to indicate the location of the employee, if it isn't already in there. Perhaps even a field containing the multiple itself. For example:

tblEmployee
PK
FName
LName
Location
WorkHours = 8, 9

Then use the WorkHours field in your query to get the multiple. It could be 8, 9, 40, or 45 as needed.

Does that help?


mmcdonal


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with a validation rule Hliu Access VBA 1 September 3rd, 2008 09:42 AM
create xml with xsd validation obaxe3k XSLT 1 August 13th, 2008 09:43 AM
Biztalk Server Rule development query Hariharan Anbarasu Biztalk 0 December 6th, 2007 12:19 PM
Chapter 8: Please insert HIW end rule. nclibrarian BOOK: Beginning Ruby on Rails 1 July 24th, 2007 11:58 PM
Writing Rule Problem gaurav_jain2403 SQL Server 2000 5 August 3rd, 2006 12:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.