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
7 3844
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.
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.
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.
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
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
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.
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?
Sign in to post your reply or Sign up for a free account.
Similar topics
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 =...
|
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...
|
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...
|
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...
|
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...
|
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?
|
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...
|
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...
|
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...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
| |