473,387 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Setting the Valid From and Expiry Date of Credit Cards

43
Hi,
I am building a system that will store credit card details in Access but am having problems setting the Format and Input Mask so it is MM/YY, I have read a previous post but it did not give a solution that was feasible for validation tests.
Any Ideas anyone, all help is much appreciated.
TIA
Feb 27 '07 #1
7 3844
ADezii
8,834 Expert 8TB
Hi,
I am building a system that will store credit card details in Access but am having problems setting the Format and Input Mask so it is MM/YY, I have read a previous post but it did not give a solution that was feasible for validation tests.
Any Ideas anyone, all help is much appreciated.
TIA
Setting the Data Type to Text and the Input Mask to 00\/00 would work but I'm not sure if this would be feasible for your circumstances.
Feb 28 '07 #2
NeoPa
32,556 Expert Mod 16PB
Try 00/00;0 as your Input Mask.
As far as I'm aware, this should work on Date fields too although I'm not positive. Try it out.
Mar 2 '07 #3
NeoPa
32,556 Expert Mod 16PB
Thinking about it, if it's for a credit card system you probably want it in text (string) form anyway.
Mar 2 '07 #4
xian2
43
Thinking about it, if it's for a credit card system you probably want it in text (string) form anyway.
Hey guys, many thanks for your replies, they have been very helpful. Why would I want it in text NeoPa?
Thanks again
Edd
Mar 5 '07 #5
xian2
43
Just to give you couple extra details, I do not need to process this information in any way as it is read off the screen and entered into a different machine so that is not important. I would just like it validated so it isn't allowed to enter a certain date in it but only with MM/YY not DD/MM/YY.
Many thanks agin
Edd
Mar 5 '07 #6
ADezii
8,834 Expert 8TB
Just to give you couple extra details, I do not need to process this information in any way as it is read off the screen and entered into a different machine so that is not important. I would just like it validated so it isn't allowed to enter a certain date in it but only with MM/YY not DD/MM/YY.
Many thanks agin
Edd
Under your circumstances, it seems as though Text would be a good Option for Data Type.
Mar 5 '07 #7
NeoPa
32,556 Expert Mod 16PB
Just to give you couple extra details, I do not need to process this information in any way as it is read off the screen and entered into a different machine so that is not important. I would just like it validated so it isn't allowed to enter a certain date in it but only with MM/YY not DD/MM/YY.
Many thanks agin
Edd
I said that as I could see no reason for storing it as a date and complicating your processing.
Validation, however, does change things somewhat. On balance, I'd still keep it as text but do some VBA validation in the BeforeUpdate event procedure to check that "1/" & control is a valid date (assuming British date layout - Otherwise it's more fiddly but check the data after formatting it as a date with a day part associated).
Does that help?
Mar 5 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Vince C. | last post by:
Hi all. I'm trying to set a cookie expiry date but my script is JS (JavaScript). I've tried Response.Cookies("Test").Expires = Date(); Response.Cookies("Test").Expires =...
4
by: ianv2 | last post by:
Hi Is the following possible using Javascript ? I would like a page to redirect to another page if the page expiry has passed. E.G. If my questionnaireform.html page had an expiry date...
4
by: William Bradley | last post by:
I have two cells on a form. One of them is the "Production Date" and the other is the "Expiry Date". The "Expiry Date" is 183 days after the "Production Date." On an Excel spreadsheet, the...
2
by: William Bradley | last post by:
"Marshall Barton" <marshbarton@wowway.com> wrote in message news:9as9lvgpnp783kogctb88c8giaepb5uf6g@4ax.com... > William Bradley wrote: > >I have two cells on a form. One of them is the...
3
by: hasanainf | last post by:
Hi all, What will be the best database design for an inventory control that uses expiry date for its products. Over a period of time, a particular product will have many expiry date and that...
6
by: Arne | last post by:
What would be a good component for processing credit cards? (I am not using commerce server.) Would I need to encrypt the credit card column in the database?
6
by: Chris Davoli | last post by:
We want to process credit cards/debit cards on our web site. We are using VB.net, so if we could get some vb.net components to validate and handle the transactions, or a web service that we could...
4
by: Stac | last post by:
I have a web service which provides updates / additions to active directory. I can add accounts, change values etc, for everything I need to except the accountexpires field. I have been searching...
0
by: mplpost | last post by:
We have created a Certificate for the purpose of symmetric encryption. We did not mention the expiry date explicitly, only later we found out that, if expiry date not mentioned then the default...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.