Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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)

Reply With Quote
  #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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:43 PM.


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