Need a String Format

M

Mota

Hi;
I want to get just the 4 letter of a string having more than 4 letter. i.e
getting "8405" from a "840501" string.How would be its format string?
Thank you in advance for ur help.
 
M

Mota

Can it be done thru Format() Function?
thank you.

Rick B said:
Left([SomeField],4)


--
Rick B



Mota said:
Hi;
I want to get just the 4 letter of a string having more than 4 letter. i.e
getting "8405" from a "840501" string.How would be its format string?
Thank you in advance for ur help.
 
R

Rick B

I don't know. Why not just use what I gave you?

Simply create an unbound text box, enter the text I gave you, and you'd
done!


--
Rick B



Mota said:
Can it be done thru Format() Function?
thank you.

Rick B said:
Left([SomeField],4)


--
Rick B



Mota said:
Hi;
I want to get just the 4 letter of a string having more than 4 letter. i.e
getting "8405" from a "840501" string.How would be its format string?
Thank you in advance for ur help.
 
T

t t via AccessMonster.com

you can do it using format() as like ;
format(val(left([field],4)),"0000")
 
M

Mota

Ok,thank you so much for ur help.

Rick B said:
I don't know. Why not just use what I gave you?

Simply create an unbound text box, enter the text I gave you, and you'd
done!


--
Rick B



Mota said:
Can it be done thru Format() Function?
thank you.

Rick B said:
Left([SomeField],4)


--
Rick B



Hi;
I want to get just the 4 letter of a string having more than 4
letter.
i.e
getting "8405" from a "840501" string.How would be its format string?
Thank you in advance for ur help.
 
Top