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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using part of a string value 1

Status
Not open for further replies.

Spon349

Technical User
Apr 24, 2001
3
GB
Is there any way to grab part of a string that's the current value of a form control? The
Code:
Characters
property provides the exact functionality I need, but it doesn't seem to apply to form values.

Thanks
 
Hi!

Me.txtText = "Full_Text_for_functions_testing"
Me.txtPartOfText = Mid(Me.txtText, 5, 7) 'Me.txtPartOfText = "_Text_f"
Me.txtPartOfText = Left(Me.txtText, 9) 'Me.txtPartOfText = "Full_Text"
Me.txtPartOfText = Right(Me.txtText, 9) 'Me.txtPartOfText = "s_testing"

See in the Help "Returning Strings from Functions"

Aivars
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top