Text field updating problem

S

Scottie

Group,

I am using the following control source for a text box on my form

=DLookUp("[LastOfRoomChangeDate]","res_source_step 2","[RID] =
[Forms]![res_residents]![RID]")

The lookup was working great, not anymore...now it only updates when
clicking the textbox...or waiting until it adds updates it almost a 2 minutes
later or by making the textbox the first tab stop......

I am using Access 2007....any ideas to what might be causing it to run this
way...or preventing my field from being updated
 
A

Allen Browne

One solution would be to Recalc the form, e.g.:
Me.Recalc

Another is to leave the text box unbound, and assign a DLookup() result to
it in a suitable event.

You will need to decide what "a suitable event" is. Perhaps the Current
event of the form, or the AfterUpdate of the controls it depends on.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top