visible text box

  • Thread starter Thread starter Starr M via AccessMonster.com
  • Start date Start date
S

Starr M via AccessMonster.com

How can I make a text box visible using only partial text from a previous
text box

If Me![TEXT] Like "C/O*" Then
Me![Blanktextline].Visible = True
Else
Me![Blanktextline].Visible = False
End If
 
In which event did you place this code?

That looks like it would work. What is the problem?
 
Use

Dim intSubStringLoc As Integer
intSubStringLoc = InStr("My dog has fleas", "dog")

if it's at the very begining it'll return 1, if it doesn't find it
it'll return 0.
 
the On current of the form - I doesn't work.

Rick said:
In which event did you place this code?

That looks like it would work. What is the problem?
How can I make a text box visible using only partial text from a previous
text box
[quoted text clipped - 4 lines]
Me![Blanktextline].Visible = False
End If
 
Use the AfterUpdate event of the first text box.

Brian


Starr M via AccessMonster.com said:
the On current of the form - I doesn't work.

Rick said:
In which event did you place this code?

That looks like it would work. What is the problem?
How can I make a text box visible using only partial text from a previous
text box
[quoted text clipped - 4 lines]
Me![Blanktextline].Visible = False
End If
 
That will cause it to fire as you move from one record to another. You also
need to fire it when you change the entry in the text box if you want it to
fire as the user enters a new record or modifies an existing record.

--
Rick B



Starr M via AccessMonster.com said:
the On current of the form - I doesn't work.

Rick said:
In which event did you place this code?

That looks like it would work. What is the problem?
How can I make a text box visible using only partial text from a
previous
text box
[quoted text clipped - 4 lines]
Me![Blanktextline].Visible = False
End If
 
Back
Top