As to the "How do I get a credit card number" question, that depends on a lot of other variables:
* Is the number being manually entered by a cash register operator?
* Is the number to be automatically read in via some attached credit card reader?
* How?
We need more information to help you on this one.
However, as to how do you change its format for printing, that one is easy.
You originally have a number such as:
m.cCredCrdNo = "6789-4567-1212-1234"
m.cRightFour = RIGHT(m.cCredCrdNo, 4) && "1234"
m.cPrntCredCrdNo = "xxxx-xxxx-xxxx-" + m.cRightFour
Good Luck,
JRB-Bldr
VisionQuest Consulting
Business Analyst & CIO Consulting Services
CIOServices@yahoo.com