Refresh Form Question 
Author Message
 Refresh Form Question

I have a multi-record form that I've been trying to highlight certain
records in.  The records to be highlighted are those that have values in
a certain field.  I've placed the following code in the arrive method of
the form:
  if field.isblank() then
       field.color = White
  else
       field.color = red
  endif

This logic works fine for all the records that display on the first
page.  But as I scroll or page down, field that shouldn't be highlighted
red are.  I later noticed that this highlighting was following the patern
of the very first page.  It's almost as if I've created a template of how
the colors are to be set on the first page and am overlaying this
template on every page.  Is there a way to refresh the next page or next
record so this does not happen.



Tue, 07 Jul 1998 03:00:00 GMT
 Refresh Form Question

Try attaching the code to the newvalue method of the field.

Regards,    \\?//
Paul        /   \    'I think, therefore I am depressed'

=======oooO==(_)==Oooo=================================================




Fri, 10 Jul 1998 03:00:00 GMT
 Refresh Form Question
: I have a multi-record form that I've been trying to highlight certain
: records in.  The records to be highlighted are those that have values in
: a certain field.  I've placed the following code in the arrive method of
: the form:
:   if field.isblank() then
:        field.color = White
:   else
:        field.color = red
:   endif

: This logic works fine for all the records that display on the first
: page.  But as I scroll or page down, field that shouldn't be highlighted
: red are.  I later noticed that this highlighting was following the patern
: of the very first page.  It's almost as if I've created a template of how
: the colors are to be set on the first page and am overlaying this
: template on every page.  Is there a way to refresh the next page or next
: record so this does not happen.

Put the code in newvalue() method of the field.

--
=========================================================================
Kasey K. S. Chang (a guy)             | Paradox for Windows Programmer

URL> http://userwww.sfsu.edu/~kschang | X-COM Guru   General PC expert
--------------------------------------+----------------------------------
Editor of XCOM and XCOM2 UN-official Strategy Guide -- FREE!  (See URL)



Sat, 11 Jul 1998 03:00:00 GMT
 
 [ 3 post ] 

 Relevant Pages 

1. Help: Form.Refresh() doesn't work for active form if mutiple forms on screen

2. - changing form object properties with refresh method - beginner's question

3. Questions about refreshing datas (VB6+ADO+SQLSERVER2000) - please help (Newb question)

4. Questions about refreshing datas (VB6+ADO+SQLSERVER2000) - please help (Newb question)

5. Questions about refreshing datas (VB6+ADO+SQLSERVER2000) - please help (Newb question)

6. form refresh

7. Form refuses to unload after rdc.refresh() ?

8. Refreshing database record display forms

9. Refreshing a fomr after changing the underlying query to the form

10. How to refresh calculated fields in a form ?

11. Refresh Database to update other forms

12. Refreshing Data in a Form


 
Powered by phpBB® Forum Software