Wrox Programmer Forums
|
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
 
Old March 20th, 2006, 10:43 AM
Registered User
 
Join Date: Mar 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Report Formatting

I have generated a report listing all of our employment positions code, the employees who hold and have held that position, and the date at which they took the position. The report is sorted by that date (the most recent being first). As it stands, I know of no method to format that first entry (Bold) so that it stands out above the people who have left the job. Any suggestions???

Thanks in advance!

Stacy

 
Old March 20th, 2006, 11:15 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Is there any indicator in the record to show that the most recent person is the incumbent? I have a similar employee/position history issue and I use a Yes/No for the incumbent. When a new record is added, the old ones switch to No and the new one switches to Yes.

Based on the Yes/No, you can set the incumbent Bold.

Another option is to use a module that is called for each record, but that might get problematic depending on the size of the report. It would call the query based on the current Position number, and then create a recordset. Then it would order the recordset and return a value if the current record was the first record in the recordset, etc. Lotsa processing.

The switch in the table is the easiest solution. I am sure if there is another way to do this, other posters will chime in.

HTH


mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Report Formatting echovue Access 3 October 10th, 2006 01:48 PM
problem with formatting the crystal report tallapaneni Crystal Reports 1 May 24th, 2005 01:38 PM
Query/formatting problem in report mega Access VBA 8 September 16th, 2004 04:29 AM
Report Formatting John Anthony Access VBA 3 October 15th, 2003 11:17 AM





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