Query to return partial field

  • Thread starter Thread starter jhairusw
  • Start date Start date
J

jhairusw

Guest
I have a sixteen digit field, I need to pull only the last four digits in the query.


Thanks
 
Try this in your query.

Right([fieldname],IIf(InStr([fieldname]," ")>0,InStr([fieldname]," ")-1,4))
 
Excellent! Thanks!:)
 

Users who are viewing this thread

Back
Top Bottom