Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Another report question

Status
Not open for further replies.

dmaier

MIS
Apr 13, 2002
38
US
Thanks for the help I got on the previous question. Your solutions worked well. I have another question I need some urgent help on. I have a value for a field that can be outputted as example 05_C06 or 05_C07, etc. depending upon the values for the field. I would like to output only the C06 or C07. Is there a way on a report to get rid of the first three characters?

Thanks again for all of your help.
 
How are ya dmaier . . .
Code:
[blue]   Right(Me!TextboxName,3)[/blue]

Calvin.gif
See Ya! . . . . . .
 
Thanks but sometimes there are 3 and sometimes there are four characters...eg C061 so I need something that will get rid of the first three characters to the left somehow.

 
If the placement of the underscore character may vary

[tt]mid$(me!txtBox, instr(me!txtBox, "_")+1)[/tt]

else, plain old

[tt]mid$(me!txtBox, 4)[/tt]

forum703 is the report forum, this is the forms forum ...

Roy-Vidar
 
Roy

Thanks. sorry for the oversight in being in the wrong place. Your suggestion worked perfectly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top