Connecting Tech Pros Worldwide Help | Site Map

How do I refresh a control

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 01:26 PM
hmoulding@gmail.com
Guest
 
Posts: n/a
Default How do I refresh a control

When I advance a form from one record to the next, all of the bound
controls update fine. How do I get unbound controls to update, as
well? E.g. a drop-down lists records in another table that are
associated with the current record, but it seems to work only for
the first record in the table. When I advance the form to the next
record, that drop-down doesn't change.

Also, how can I force a change in one control on the form to
trigger updates in other controls? Their source values are changing,
but they keep displaying their original, old values. I have to
close the form and open it again to get the controls to show the
new values, and that's not right.
--
Helge Moulding
hmoulding at gmail dot com Just another guy
http://hmoulding.cjb.net/ with a weird name


  #2  
Old November 13th, 2005, 01:27 PM
MLH
Guest
 
Posts: n/a
Default Re: How do I refresh a control

Write code to trigger updating unbound controls on the form's
OnCurrent event.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxx


On 6 Sep 2005 13:54:22 -0700, "hmoulding@gmail.com"
<hmoulding@gmail.com> wrote:
[color=blue]
>When I advance a form from one record to the next, all of the bound
>controls update fine. How do I get unbound controls to update, as
>well? E.g. a drop-down lists records in another table that are
>associated with the current record, but it seems to work only for
>the first record in the table. When I advance the form to the next
>record, that drop-down doesn't change.
>
>Also, how can I force a change in one control on the form to
>trigger updates in other controls? Their source values are changing,
>but they keep displaying their original, old values. I have to
>close the form and open it again to get the controls to show the
>new values, and that's not right.[/color]

  #3  
Old November 13th, 2005, 01:27 PM
hmoulding@gmail.com
Guest
 
Posts: n/a
Default Re: How do I refresh a control

MLH wrote:[color=blue]
> Write code to trigger updating unbound controls on the form's
> OnCurrent event.[/color]

Thanks, I'll try that. Is there a reference somewhere that'll help
me figure out what triggers the various events? I gather OnCurrent
is triggered whenever the form displays a different record.
--
Helge Moulding
hmoulding at gmail dot com Just another guy
http://hmoulding.cjb.net/ with a weird name

  #4  
Old November 13th, 2005, 01:28 PM
MLH
Guest
 
Posts: n/a
Default Re: How do I refresh a control

On 6 Sep 2005 20:23:50 -0700, "hmoulding@gmail.com"
<hmoulding@gmail.com> wrote:
[color=blue]
>MLH wrote:[color=green]
>> Write code to trigger updating unbound controls on the form's
>> OnCurrent event.[/color]
>
>Thanks, I'll try that. Is there a reference somewhere that'll help
>me figure out what triggers the various events? I gather OnCurrent
>is triggered whenever the form displays a different record.[/color]

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
You are right about the OnCurrent event. The online HELP is
pretty good in covering events. An easy way to access it is by
pressing the F1-key after clicking on one of the many events
listed in the event properties window.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.