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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Refreshing a text box based on other text box values



 
 
Thread Tools Display Modes
  #1  
Old July 29th, 2004, 08:19 AM
ExcelMan
external usenet poster
 
Posts: n/a
Default Refreshing a text box based on other text box values

I have a simple form with a number of bound fields with text boxes. I also
have an unbound text box.

The unbound text box takes on a calculated value that is a concatenation of
several of the other text boxes.

The problem is that the unbound text box only updates when I exit a bound
text box and change records. I want the unbound text box to update with
every keystroke that changes a referenced bound text box.

I am able to get this to work by placing the command:

Me.Refresh

in the bound text boxes Change event. However, this makes the screen flash
and is slow. Obviously it is refreshing the entire form instead of just
updating the unbound text box.

Does anyone know how I can specifically recalculate the value in the unbound
text box when the user is typing in one of the referenced bound text boxes?

Thanks in advance.



  #2  
Old July 29th, 2004, 09:25 AM
dk
external usenet poster
 
Posts: n/a
Default Refreshing a text box based on other text box values

do someting like that:
Private Sub YourBoundedField_On Change()
Me.yourUnboundedField.refresh
end sub

I hope that will help. Othervise You will need help from more clever
participants here

Regards,
dk


"ExcelMan" wrote in message
...
I have a simple form with a number of bound fields with text boxes. I

also
have an unbound text box.

The unbound text box takes on a calculated value that is a concatenation

of
several of the other text boxes.

The problem is that the unbound text box only updates when I exit a bound
text box and change records. I want the unbound text box to update with
every keystroke that changes a referenced bound text box.

I am able to get this to work by placing the command:

Me.Refresh

in the bound text boxes Change event. However, this makes the screen

flash
and is slow. Obviously it is refreshing the entire form instead of just
updating the unbound text box.

Does anyone know how I can specifically recalculate the value in the

unbound
text box when the user is typing in one of the referenced bound text

boxes?

Thanks in advance.





  #3  
Old July 29th, 2004, 01:48 PM
Laurie Eaton
external usenet poster
 
Posts: n/a
Default Refreshing a text box based on other text box values

Hi ExcelMan.

I would try adding the line 'Me!ListBoxyouwantupdated.Requery' in the 'After Update' event property of the entry part of your form. (the "Me' may be uneccessary). 'Requery' has worked fine for me.. never used 'Refresh'.

regards Laurie Eaton

"ExcelMan" wrote:

I have a simple form with a number of bound fields with text boxes. I also
have an unbound text box.

The unbound text box takes on a calculated value that is a concatenation of
several of the other text boxes.

The problem is that the unbound text box only updates when I exit a bound
text box and change records. I want the unbound text box to update with
every keystroke that changes a referenced bound text box.

I am able to get this to work by placing the command:

Me.Refresh

in the bound text boxes Change event. However, this makes the screen flash
and is slow. Obviously it is refreshing the entire form instead of just
updating the unbound text box.

Does anyone know how I can specifically recalculate the value in the unbound
text box when the user is typing in one of the referenced bound text boxes?

Thanks in advance.




 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
making certain text values go colour red Graham Worksheet Functions 1 June 23rd, 2004 06:05 PM
form fields showing "form text" instead of values Arget New Users 2 June 9th, 2004 12:04 AM
Extracting Data based on Equal Cell Values Ken Wright Worksheet Functions 5 October 7th, 2003 07:27 PM
Adding cell values based on what you see John in Burlington Worksheet Functions 2 October 1st, 2003 05:18 PM
return value in col C based on values in Cols A & B itchyw Worksheet Functions 1 September 18th, 2003 06:22 PM


All times are GMT +1. The time now is 08:47 PM.


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