One of my forms is in datasheet view. The column headers display the "name" of the text boxes. I want to be able to display a different column header under certain circumstances so it would seem i have to change the name property of the text box. I have put in the open event of the form me.txtbox1.name= myvariable (myvariable is a previously defined string), however it does not seem to register.
Further more how could i cope with all the code such as doubleclick in txtbox1 if its name is now changed?
Is there any way I could just change the column header caption and leave the control alone?
Whilst on the subject does anyone know how I can run code through clicking on those column headers. They seem to be dead! How do programs such as outlook work where you can click on a column header to sort by it etc (a tiny arrow sometimes appears?)
Thanks in anticipation
Further more how could i cope with all the code such as doubleclick in txtbox1 if its name is now changed?
Is there any way I could just change the column header caption and leave the control alone?
Whilst on the subject does anyone know how I can run code through clicking on those column headers. They seem to be dead! How do programs such as outlook work where you can click on a column header to sort by it etc (a tiny arrow sometimes appears?)
Thanks in anticipation