Remove Spaces Between Words And Add Hyphen Copy Other Field Access (1 Viewer)

gcoaster

Registered User.
Local time
Yesterday, 16:02
Joined
Nov 5, 2007
Messages
32
Hello All

GOAL - I would like to have one text box where I enter a sentence

txtKeywords: Access Is For Smart People Smarter Than I

I would like to create a button when clicked moves txtKeywords into another textbox [txtKeywordscombined] field and removes the spaces between the words and adds hyphens

txtKeywordscombined: Access-Is-For-Smart-People-Smarter-Than-I


Would I use the 'Replace' command in even procedures to do this? Another way? Example?
Thank you!
 

JHB

Have been here a while
Local time
Today, 01:02
Joined
Jun 17, 2012
Messages
7,732
Replace function is the right one to use.
Code:
[FONT=Calibri]  Me.txtKeywordscombined = Replace(Me.txtKeywords, " ", "-")
[/FONT]
 

Users who are viewing this thread

Top Bottom