Re: simple Veriable problem
what is currently in text53 and text38?
Quote:
It wants to make "photo1" = "" instead of making text53 = ""
your code does not try to make text53 = ""
Re: simple Veriable problem
Here is what you have
vb Code:
'ALWAYS INDENT YOUR CODE
If Check22.Value = 1 Then 'use vbChecked or vbUnChecked not 0 or 1
If text53.Text = "" Then
text53.Text = Text38.Text
photo1 = text53.Text 'remove the quotes
GoTo 100 'NEVER USE GOTO (unless you are adding error trapping)
End If
End If
If you want something to happen if check22 = 0 then why are you checking for it to equal 1? As you have it now, if it does not equal 1, nothing happens at all.
Re: simple Veriable problem
Ok I will do my best to explain.
When check1 = 1 it copies the contents of text38 to text53
then it assigns Photo1 with "text.53.text" value ( so it can remember where it pasted the contents of text38)
When check1 = 0 it uses the value in Photo1 to go back and remove the contents of text53.
I will go a little further
I have a picture box with an image and check box
when check1 = 1 then it copies the location of that image to a Que for printing
if check1 = 0 then it removes it from the Que
Photo1 variable is just used as a book mark telling the program what to delete. Being as it holds a value like "text1.text" I need the code to tell the program to change the contents of the text1.text to "" and not the change the value of Photo1 to "".