Need a String Format

  • Thread starter Thread starter Mota
  • Start date Start date
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.
 
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.
 
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.
 
you can do it using format() as like ;
format(val(left([field],4)),"0000")
 
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.
 
Back
Top