Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 August 21st, 2012, 10:38 PM
Registered User
 
Join Date: Aug 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Going crazy! HELP!

I am ready to pull my hair out over this. I can't seem to figure out how to isolate a specific record on a report, a form or anyother way. I know that I need to pass a value, but I'm not sure how to incorperate that value for each individual record. I have both the inside out manual for 2007 as well as the Access 2007 VBA Programmers manual here and I can't find what I am looking for. Here is what I am trying to do.

I have a report that lists all tools that will be due for calibration within 7 calendar days. The datediff fuction works just fine. On the report I installed a hidden label that is supposed to appear when a tool is overdue, (when txt_days_remain < 1). What seems to be happening is that when it triggers it triggers for all and visa versa. Somewhere in the back of my mind I am thinking that if I can isolate the conditions for the over due label I can make this thing work. I occurs to me that all I need to do is to tell it the code,

"for each unique record" (txt_inst_id) [also the primary key] if txt_days_remain < 1 then lbl_over_due.Visible = True.

I can't seem to figure out the language needed to make this happen. For that matter I can't seem to figure out how to get the value of the txt_inst_id for any other purpose, such as opening the record in a pop up form for editing. This simple functionality is critical to what I am trying to do. Can someone please help me figure this out? I am not one to give up without a fight and will do the leg work if someone can at least point me in the general direction.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Those ARRAYS are making me crazy rtr1900 Classic ASP Databases 2 January 13th, 2009 04:31 PM
Am I crazy to think I can do this? williamlove Visual Basic 2008 Essentials 1 December 19th, 2008 10:27 PM
Almost crazy trevo4f BOOK: Beginning ASP 3.0 2 May 15th, 2008 11:22 AM
SQL Crazy Query... devendar SQL Server 2005 4 July 19th, 2007 12:51 AM
Crazy Thing happening Kenny Alligood Access VBA 10 February 17th, 2004 12:26 PM





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