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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

delete first character if it's a space.

Status
Not open for further replies.

air0jmb

Technical User
Sep 8, 2006
38
US
I'm importing a large table from Excel and many records have a space preceding the first text character.

Please help with an expression to delete the first character in a text field if it's a space. And can I use this on a memo field?

Thanks!

Mike

 
Thanks, but I'm having trouble with the IIf part of the expression. Could you provide the complete expression?

Thanks!

Mike
 
There's no need for an IIF function...just use the Trim function. It will remove any leading (or trailing) spaces, if there are any. If there are no extra spaces, it won't change the value at all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top