Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Here's what I need: On my form, I have a field that needs to be enabled while everything else is disabled. That's no problem, but it's with the next step that I have issues.

 

Everything else will stay disabled until the first character is entered into this field. That character will be saved in the database, and at that time, everything else will become enabled. I'm having a terrible time checking this field's value to see if anything has been entered into it.

 

This is necessary because I need the autonumber generation from my database to appear as soon as possible.

 

Any help is appreciated.

Kevin

Posted

Sorry for not being clear.

 

I need to check the text box to see if there are characters in it. I BELIEVE I can get it to work with an if statement:

 

if txtName.Text = " " Then

everthing.enabled = false

end if

 

Everything starts out disabled just like it should. But there has to be in a loop, and I can't get the loop to work right. I tried it like this:

 

if txtName.text = " " then

 

while txtName.Text = " "

everything.enabled = false

end while

 

else

 

everything.enabled = true

 

end if

 

This doesn't even load. I've tried taking out the if's, but it crashes even harder.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...