Using the MID Function
In this tutorial you will learn how to use the MID Function.
The MID function returns a String containing a specified number of characters from a string.
=MID( string, start, length )
string the value you wish to amend
start the character to begin with
length the length of characters you wish to return
In this example we will work with a Name.
The result is har.
The results using a Query would be
In a Form you could set the Default Value of a Textbox to
=MID("Richard Rost", 4, 3)
In a Form add a TEXTBOX control and rename it "txtMid", then you could add the following in the Load Event.
Private Sub Form_Load()
txtMid = Mid("Richard Rost", 4, 3)
Access Expert 14
See this FREE Tip on Mid and many others.
See this Blog Post on the Mid function.
You can find more about this by searching the website.
By: Alex Hedley
Click here to sign up for more FREE tips