Use of left in a query

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

Guest

If I want to use left e.g., left(len([AssignNo]),4) for Assignment# 123456
would get 1234 what if the user entered 123 it returns a null so how so take
care of that?
 
If you use left 4 on 123 it should return 123

The problem is with the left that you gave us
left(len([AssignNo]),4)

Should be without the len

left([AssignNo],4)
 

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