• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 566
  • Last Modified:

Remove Credit Card Input Mask

I have a Credit Card Number text field that has an input mask:
Me.CC_Number.InputMask = "0000\-0000\-0000\-0000;0;_"

An end user wants a query that shows the Credit Card Numbers without the dashes.  How do I get rid of the dashes in a query?
0
Sasha42
Asked:
Sasha42
  • 2
1 Solution
 
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)Commented:


NoDashes: Replace([YourCCNumField],"-","")

mx
0
 
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)Commented:
Example:

SELECT Table1.FIELD1, Table1.FIELD2, Replace([FIELD3],"-","") AS NoDashes
FROM Table1;

where FIELD3 is the CC number

mx
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now