Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

text boxes all = null?

Status
Not open for further replies.

tkecowboy

Programmer
Mar 31, 2004
11
0
0
US
I have a simple form with several text boxes. I type info into the boxes and click the save button on the form. As I try to populate the variable from the form control I am getting an error that tells me all the textboxes are null, even though I have entered info. I simply try this:

dim Historyproblem1 as string
Historyproblem1 = me.histprob1

when I hover over the "me.histprob1" code it even shows null. What's up with this? Thanks.

Glenn
 
That seems very odd. My first guess is that you're using the wrong control name (using the name of the label instead of the text box for instance). Try creating a test button that sets the value for your textbox.

For instance:

Me.histprob1 = "This is a text."

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top