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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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 | |
|
|