(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!
(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!
(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?)
_____________________________________________
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!
|
|
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