Question : Change the defualt value of a text box upon end-user input.

I have an unbound text box on a form with a default value of ‘ABCD’.  For now I’m using the property sheet to set the new default value after the form is opened in design view.

Instead, I would like the end user to be able to type the value in the text box and have it set as the new default value on an ‘on-enter’ event perhaps.  Any ideas are much appreciated.

Answer : Change the defualt value of a text box upon end-user input.


If you need it for every row, then build it into your query.  I would use HainKurt's approach of the case statement.   Here it is modified to your columns.  The value of LastCheck column is the name of the 'last' column that has a 1 as a value...

select ID
 ,case
  when Dec=1 then 'Dec'
  when Nov=1 then 'Nov'
  ...
  when Jan=1 then 'Jan'
end as LastCheck
from myTable




Random Solutions  
 
programming4us programming4us