Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: MICR Line Formula Post Reply Post New Topic
Author Message
$$Dr
Newbie
Newbie


Joined: 18 Feb 2016
Online Status: Offline
Posts: 15
Quote $$Dr Replybullet Topic: MICR Line Formula
    Posted: 04 Sep 2021 at 5:11am
Am receiving a fail message from Wells on our checks.

Current formula is as follows:

 'c' & right ('000000000' & Trim (( APPB.CMRef )), 9) & 'c' & ' a' & (CMAC.RoutingId) & 'a ' & (CMAC.BankAcct) & 'c'

Can someone explain in English what the formula says, especially the section that says Right ('000000000' ?

Wells is stating the account number is starting at position 32 and is starting at 33. Also stating that the check number is starting at position 44 and should be 45.

Because Wells references the line starting from the right side of the check form, it is confusion to 1) know if the MICR formula is position correction onf the form (since the formula field is position beginning from left of form) and if the MICR formula is the correct length.

Any idea whether the formula is the issue or positioning of the formula field on the check form?
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1568
Quote kevlray Replybullet Posted: 07 Sep 2021 at 4:36am
Basically the right ('000000000'   is padding the string with zeros from the right side.  I have seen left side padding of zeros and spaces, but not the right side.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4362
Quote lockwelle Replybullet Posted: 07 Sep 2021 at 5:05am
Another way to look at it. The formula is making sure that a number is the same length by adding zeros to the front of the number.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.