Ask Experts Questions for FREE Help!
Ask    ||    Answer
 
Advanced  
 

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Databases > Access   »   How to highlight, update and replace in same table

 
Thread Tools Search this Thread Display Modes
Question
 
 
#1  
Old Feb 4, 2008, 08:51 PM
susan100
New Member
susan100 is offline
 
Join Date: Feb 2008
Posts: 1
susan100 See this member's comment history on his/her Profile page.
How to highlight, update and replace in same table

I would like to highlight a field in a table or form by changing background color when someone turns 18 years old. THis alerts me to delete them from the database of over 5000 names. I have a [DOB] date of birth field currently. Also, when i enter a new record in the database and put in the birthdate how can i if i add a new column named age(which shows their age) automatically update to show their age? Last question how do I delete a hyphen out of a number field and replace with a space for about 2000 of the 5000 records?

Reply With Quote
 
     

Answers
 
 
Old Feb 29, 2008, 06:36 AM   #2  
Computer Expert and Renaissance Man
ScottGem is offline
 
ScottGem's Avatar
 
Join Date: Jan 2003
Location: LI, NY - USA
Posts: 33,664
ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.
Pay to call ScottGem for advice ($.75/min)
Call ScottGem via Skype™
Look at conditional formatting.

You should NOT be storing age. As a general rule we do not store calculated values. You can use the following expression to calculate the age of a person:

DateDiff("yyyy", [Bdate], Now())+Int( Format(now(), "mmdd") < Format( [Bdate], "mmdd") )

You can use that (adding >=18) as the Condition for control you want to change the background color for.

On another note, you would do this on a form, not a table. interaction with data should only be done thru forms. And you don't have fields on a form, you have controls that may or may not be bound to fields in a table. This is a subtle but important distinction.


Finally, you would use the Replace feature under the Edit menu.
  Reply With Quote
 
     

Your Answer
Email me when someone replies to my answer
Join Login





Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

 
Similar Sponsors


Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

Similar Threads
How to update AVG antivirus Update to computer,which is not connect with internet
(2 replies)
Highlight Disaster
(1 replies)
91 highlight otis nixon
(0 replies)
highlight- update 2- Thanks for suggestions..
(1 replies)
WORD -- highlight , update
(2 replies)

Search this Thread

Advanced Search

Bookmarks

Sponsors



Copyright ©2003 - 2009, Ask Me Help Desk.
All times are GMT -8. The time now is 04:33 PM.