Access Equivalent for @left in Excel

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I am pretty new to Access. I need to calculate a field in a report
depending on whether the 2 leftmost character in the field "Part #" are KB or
anything else. How do I do this in Access?

Thank you for your help.
 
Access has a Left function:

Left(MyString, 2) will return the two left-most characters.
 
Hi,

I am pretty new to Access. I need to calculate a field in a report
depending on whether the 2 leftmost character in the field "Part #" are KB or
anything else. How do I do this in Access?

Thank you for your help.

To find the first 2 characters in a field (or a String):
= Left([FieldName],2)
 
Douglas J. Steele said:
Access has a Left function

Does it? Jet has a LEFT function and VBA has a LEFT function (and
Excel has VBA). Then again, from the title, @LEFT is a Lotus 1-2-3
worksheet function, not Excel, so who knows anything <g>?

Jamie.

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top