A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

continous form question



 
 
Thread Tools Display Modes
  #1  
Old May 27th, 2010, 10:12 PM posted to microsoft.public.access
Daryl S[_2_]
external usenet poster
 
Posts: 881
Default continous form question

Nick -

You can use conditional formatting to change the text to red on a text
field. The difficult thing is to be able to set up the criteria for this.
You will need to 'know' the is determining the time on the 'current' record
as well as the 'next' record. This will be easy if you can code the record
source to contain the time from the 'next' record and include it on the
current record. Then your condition would be if the two fields are equal.
The 'next time' field does not need to be displayed, but it needs to be
available on the current record. You may need to adjust your record source
to pull in this data, but depending on your data, this could cause your
recordset to be non-updateable. If that is not an issue, then you are OK.
If that is an issue, then you may want to write a public function to pull in
the 'next' record's time, and adjust the form's record source to include
that. Then look at the conditional formatting to get the display as you want
it.

--
Daryl S


"Nick T" wrote:

Hi,

I have a 'continous form' which gets its data from a table.
Im using a form for ease of use by the operator and data is displayed in
text boxes.

My form has 6 columns and thousands of rows - so many records in the table.
(its pretty much like an excel spreadsheet).

However, on my form, i have a text box and i want the text box to change to
eg VBred, if the time on the current record matches the time on the next
record. (obvousley time is one of the pieces of data and displayed as hh:mm)

As my form is a continous form, if i add my 'colour' text box to my form in
design view, it appears for all records - which is good.

Any suggestions for this??

Many thanks

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:52 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.