1. Replace() Function :
In MS Access The Replace function will replace a substring by another substring with a specified number. In this function, the first parameter will be the string and the second parameter will be found (The substring to search for in string) and the third parameter will be the replacement(The substring to replace find in the string) and fourth is optional is the starting point if not given then default it will be taken 1, fifth will be the count( number of replaces to perform), this will also optional.
Syntax :
Replace(string1, find, replacement, start, count)
Example –
SELECT Replace("geeksforgeeks", "e", "i") AS ReplaceString;
Output –
| ReplaceString |
|---|
| giiksforgiiks |
Example –
SELECT Replace("geeksforgeeks", "g", "z", 4) AS ReplaceString;
Output –
| ReplaceString |
|---|
| geeksforzeeks |
2. Space() Function :
In MS Access, The Space function returns a string of the given number of space characters. A number will be pass as a parameter and it will return a string of the length of the given number and all characters will be space.
Syntax :
Space(number)
Example –
SELECT len(Space(15)) AS SpaceString;
Output –
| SpaceString |
|---|
| 15 |
Example –
SELECT len(Space(10)) AS SpaceString;
Output –
| SpaceString |
|---|
| 10 |
Recommended Posts:
- Hex() and Oct() Function Function in MS Access
- SLN() and SYD() Function Function in MS Access
- DDB () and FV() Function Function in MS Access
- Val() and Sum() Function in MS Access
- Sgn() and Sqr() function in MS Access
- StrConv() and StrReverse() Function in MS Access
- Chr() and Asc() Function in MS Access
- InStr() and InstrRev() Function in MS Access
- LCase() and UCase () Function in MS Access
- Str() and StrComp() Function in MS Access
- Exp() and Count() Function in MS Access
- Mid() and Len() Function in MS Access
- LTrim() and RTrim() Function in MS Access
- Left() and Right() Function in MS Access
- Rnd() and Round Function in MS Access
- Max() and Min() function in MS Access
- Fix() and Format() Function in MS Access
- Second() and Time() Function in MS Access
- MonthName() and Now() function in MS Access
- Month() and Minute() Function in MS Access
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

