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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |