WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

change text color

 
   Home -> Office other -> Programming RSS
Next:  Drop down is not displaying over frames  
Author Message
Mary Ann Hailey

External


Since: Sep 10, 2008
Posts: 6



(Msg. 1) Posted: Thu Oct 09, 2008 3:02 pm
Post subject: change text color
Archived from groups: microsoft>public>frontpage>programming (more info?)

I have a database results page that pulls a maintenance schedule from a query
in MS Access. The users would like to see the past due items highlighted. How
do I do this? Thank you!
Back to top
Login to vote
Stefan B Rusynko

External


Since: Oct 11, 2003
Posts: 12582



(Msg. 2) Posted: Fri Oct 10, 2008 4:50 am
Post subject: Re: change text color [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Use the Date Diff functionSee - http://www.devguru.com/technologies/vbscript/quickref/datediff.htmlIn the cell displaying your date
find the DBRW result code for thw date display from the DB- say it is: <%=fp_rs("yourdatefieldname")%> Replace it with:<% If
DateDiff("d",Date(),fp_rs("yourdatefieldname"))>30 then %> <font color"red"><%=fp_rs("yourdatefieldname")%></font><% Else %>
<font color"black"><%=fp_rs("yourdatefieldname")%></font><% End If %>
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


"Mary Ann Hailey" <MaryAnnHailey.TakeThisOut@discussions.microsoft.com> wrote in message
news:6DBCD5A2-7361-436A-BED8-FAF0FE753001@microsoft.com...
|I have a database results page that pulls a maintenance schedule from a query
| in MS Access. The users would like to see the past due items highlighted. How
| do I do this? Thank you!
Back to top
Login to vote
Stefan B Rusynko

External


Since: Oct 11, 2003
Posts: 12582



(Msg. 3) Posted: Sat Oct 11, 2008 4:18 am
Post subject: Re: change text color [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

PS
Let me try that post w/ line breaks

Use the Date Diff function

See - http://www.devguru.com/technologies/vbscript/quickref/datediff.html

In the cell displaying your date find the DBRW result code for the date display from the DB

- say it is: <%=fp_rs("yourdatefieldname")%>

Replace it with:

<% If DateDiff("d",Date(),fp_rs("yourdatefieldname"))>30 then %>

<font color"red"><%=fp_rs("yourdatefieldname")%></font>

<% Else %>

<font color"black"><%=fp_rs("yourdatefieldname")%></font>

<% End If %>

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


"Stefan B Rusynko" <sbr_enjoy.RemoveThis@hotmail.com> wrote in message news:u7kIAVrKJHA.1500@TK2MSFTNGP06.phx.gbl...
| Use the Date Diff functionSee - http://www.devguru.com/technologies/vbscript/quickref/datediff.htmlIn the cell displaying your
date
| find the DBRW result code for thw date display from the DB- say it is: <%=fp_rs("yourdatefieldname")%> Replace it with:<% If
| DateDiff("d",Date(),fp_rs("yourdatefieldname"))>30 then %> <font color"red"><%=fp_rs("yourdatefieldname")%></font><% Else %>
| <font color"black"><%=fp_rs("yourdatefieldname")%></font><% End If %>
| --
|
| _____________________________________________
| SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| "Warning - Using the F1 Key will not break anything!" (-;
| _____________________________________________
|
|
| "Mary Ann Hailey" <MaryAnnHailey.RemoveThis@discussions.microsoft.com> wrote in message
| news:6DBCD5A2-7361-436A-BED8-FAF0FE753001@microsoft.com...
||I have a database results page that pulls a maintenance schedule from a query
|| in MS Access. The users would like to see the past due items highlighted. How
|| do I do this? Thank you!
|
|
Back to top
Login to vote
Display posts from previous:   
       Home -> Office other -> Programming All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
 Office
  Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET