Solved

Remove Credit Card Input Mask

Posted on 2008-10-23
2
563 Views
Last Modified: 2012-05-05
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
Comment
Question by:Sasha42
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 500 total points
ID: 22789089


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

mx
0
 
LVL 75
ID: 22789107
Example:

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

where FIELD3 is the CC number

mx
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question