Remove Spaces Between Words And Add Hyphen Copy Other Field Access

gcoaster

Registered User.
Local time
Today, 14:07
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!
 
Replace function is the right one to use.
Code:
[FONT=Calibri]  Me.txtKeywordscombined = Replace(Me.txtKeywords, " ", "-")
[/FONT]
 

Users who are viewing this thread

Back
Top Bottom