Solved

Remove Credit Card Input Mask

Posted on 2008-10-23
2
557 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
  • 2
2 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now