Link to home
Start Free TrialLog in
Avatar of John Kincaid
John KincaidFlag for United States of America

asked on

Need to apply a custom number format in Access VBA

Need to apply a custom number format in Access VBA like this:

     lngCAN = Format(!CAN, ["18-"0000])

I am getting "Compile error: External name not defined"

The variable "lngCAN" is a number (1,2,3 ...) and the desire is to write "18-0001" and so on.
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of John Kincaid

ASKER

Thanks for the input.  Worked perfectly!
Avatar of Bill Prew
Bill Prew

Great, glad that helped.


»bp