how to remove a word from a field

User avatar
sistemaPR
2StarLounger
Posts: 119
Joined: 01 Jul 2013, 14:08

how to remove a word from a field

Post by sistemaPR »

I have a text field that have this value "April 2014 Sample" , I created a query to output the data to excel , but I need to remove the word (Sample)
Do you know how to remove a word from a text field..

User avatar
HansV
Administrator
Posts: 78621
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: how to remove a word from a field

Post by HansV »

Open the query in design view.
Let's say the field is named MyField. You'll have a column in the query that has MyField in the Field: row.
Change this to

Replace([MyField],"Sample","")
Best wishes,
Hans