A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date Format - Credit Card Expiry



 
 
Thread Tools Display Modes
  #1  
Old May 25th, 2005, 12:00 PM
John Smith
external usenet poster
 
Posts: n/a
Default Date Format - Credit Card Expiry

Hi, This should be simple for you guys.

We need to record credit card details including "Expiry Date" in the form of
"DD/YY".

How do we best format the field for easy entry AND validation (i.e. as a
date field and not just as a text field) without having to enter anything
other than just the month and year and with the result not showing up as
day, month year?

Please help as it is driving me nuts.


  #2  
Old May 25th, 2005, 12:09 PM
Alex White MCDBA MCSE
external usenet poster
 
Posts: n/a
Default

Don't use a date field, use a string and validate the format are you sure
it's DD/YY rather than MM/YY, the other thing would be use a date field and
always set the day to 01 because you never need it, it should not be a
problem and on your screen always display MM/YY so dropping the day portion
on the screen and any reports.


--
Regards

Alex White MCDBA MCSE
http://www.intralan.co.uk

"John Smith" wrote in message
...
Hi, This should be simple for you guys.

We need to record credit card details including "Expiry Date" in the form
of "DD/YY".

How do we best format the field for easy entry AND validation (i.e. as a
date field and not just as a text field) without having to enter anything
other than just the month and year and with the result not showing up as
day, month year?

Please help as it is driving me nuts.



  #3  
Old May 25th, 2005, 12:36 PM
John Smith
external usenet poster
 
Posts: n/a
Default

I guess it would help if I could type - yes I do mean MM/YY of course.

Can you explain what you mean by "always set the day to 01" how do I do this
in the table design or is this effected in the form?

Thanks for helping.

"Alex White MCDBA MCSE" wrote in message
...
Don't use a date field, use a string and validate the format are you sure
it's DD/YY rather than MM/YY, the other thing would be use a date field
and always set the day to 01 because you never need it, it should not be a
problem and on your screen always display MM/YY so dropping the day
portion on the screen and any reports.


--
Regards

Alex White MCDBA MCSE
http://www.intralan.co.uk

"John Smith" wrote in message
...
Hi, This should be simple for you guys.

We need to record credit card details including "Expiry Date" in the form
of "DD/YY".

How do we best format the field for easy entry AND validation (i.e. as a
date field and not just as a text field) without having to enter anything
other than just the month and year and with the result not showing up as
day, month year?

Please help as it is driving me nuts.





  #4  
Old May 25th, 2005, 12:54 PM
Alex White MCDBA MCSE
external usenet poster
 
Posts: n/a
Default

Hi John,

I have done a bit of testing I think using the date field type is not going
to yield the results you want, either use a text field type with a length of
4 with a format of "99/99" and an input mask of 99/99 or think about
splitting the month and year into 2 different fields, 1 for month and 1 for
year both text length 2,

--
Regards

Alex White MCDBA MCSE
http://www.intralan.co.uk

"John Smith" wrote in message
...
I guess it would help if I could type - yes I do mean MM/YY of course.

Can you explain what you mean by "always set the day to 01" how do I do
this in the table design or is this effected in the form?

Thanks for helping.

"Alex White MCDBA MCSE" wrote in message
...
Don't use a date field, use a string and validate the format are you sure
it's DD/YY rather than MM/YY, the other thing would be use a date field
and always set the day to 01 because you never need it, it should not be
a problem and on your screen always display MM/YY so dropping the day
portion on the screen and any reports.


--
Regards

Alex White MCDBA MCSE
http://www.intralan.co.uk

"John Smith" wrote in message
...
Hi, This should be simple for you guys.

We need to record credit card details including "Expiry Date" in the
form of "DD/YY".

How do we best format the field for easy entry AND validation (i.e. as a
date field and not just as a text field) without having to enter
anything other than just the month and year and with the result not
showing up as day, month year?

Please help as it is driving me nuts.







  #5  
Old May 25th, 2005, 01:41 PM
John Smith
external usenet poster
 
Posts: n/a
Default

Some things just aren't simple are they.

I can see your point of a text field (length 4 or 5 to accomodate the "/"
?).

I would then need to validate the last two characters against the current
year and then possibly the first two against the current month.

Thanks for all your input.

"Alex White MCDBA MCSE" wrote in message
...
Hi John,

I have done a bit of testing I think using the date field type is not
going to yield the results you want, either use a text field type with a
length of 4 with a format of "99/99" and an input mask of 99/99 or think
about splitting the month and year into 2 different fields, 1 for month
and 1 for year both text length 2,

--
Regards

Alex White MCDBA MCSE
http://www.intralan.co.uk

"John Smith" wrote in message
...
I guess it would help if I could type - yes I do mean MM/YY of course.

Can you explain what you mean by "always set the day to 01" how do I do
this in the table design or is this effected in the form?

Thanks for helping.

"Alex White MCDBA MCSE" wrote in message
...
Don't use a date field, use a string and validate the format are you
sure it's DD/YY rather than MM/YY, the other thing would be use a date
field and always set the day to 01 because you never need it, it should
not be a problem and on your screen always display MM/YY so dropping the
day portion on the screen and any reports.


--
Regards

Alex White MCDBA MCSE
http://www.intralan.co.uk

"John Smith" wrote in message
...
Hi, This should be simple for you guys.

We need to record credit card details including "Expiry Date" in the
form of "DD/YY".

How do we best format the field for easy entry AND validation (i.e. as
a date field and not just as a text field) without having to enter
anything other than just the month and year and with the result not
showing up as day, month year?

Please help as it is driving me nuts.









  #6  
Old May 25th, 2005, 05:01 PM
Rick B
external usenet poster
 
Posts: n/a
Default

John:

Personally, I have done this with TWO text fields. I created a drop down
list for the 12 months and a drop-down list for the next 15 years.



--
Rick B



"John Smith" wrote in message
...
Some things just aren't simple are they.

I can see your point of a text field (length 4 or 5 to accomodate the "/"
?).

I would then need to validate the last two characters against the current
year and then possibly the first two against the current month.

Thanks for all your input.

"Alex White MCDBA MCSE" wrote in message
...
Hi John,

I have done a bit of testing I think using the date field type is not
going to yield the results you want, either use a text field type with a
length of 4 with a format of "99/99" and an input mask of 99/99 or think
about splitting the month and year into 2 different fields, 1 for month
and 1 for year both text length 2,

--
Regards

Alex White MCDBA MCSE
http://www.intralan.co.uk

"John Smith" wrote in message
...
I guess it would help if I could type - yes I do mean MM/YY of course.

Can you explain what you mean by "always set the day to 01" how do I do
this in the table design or is this effected in the form?

Thanks for helping.

"Alex White MCDBA MCSE" wrote in message
...
Don't use a date field, use a string and validate the format are you
sure it's DD/YY rather than MM/YY, the other thing would be use a date
field and always set the day to 01 because you never need it, it

should
not be a problem and on your screen always display MM/YY so dropping

the
day portion on the screen and any reports.


--
Regards

Alex White MCDBA MCSE
http://www.intralan.co.uk

"John Smith" wrote in message
...
Hi, This should be simple for you guys.

We need to record credit card details including "Expiry Date" in the
form of "DD/YY".

How do we best format the field for easy entry AND validation (i.e.

as
a date field and not just as a text field) without having to enter
anything other than just the month and year and with the result not
showing up as day, month year?

Please help as it is driving me nuts.











  #7  
Old May 25th, 2005, 05:04 PM
Alex White MCDBA MCSE
external usenet poster
 
Posts: n/a
Default

I think that is the way to go......

--
Regards

Alex White MCDBA MCSE
http://www.intralan.co.uk

"Rick B" Anonymous wrote in message
...
John:

Personally, I have done this with TWO text fields. I created a drop down
list for the 12 months and a drop-down list for the next 15 years.



--
Rick B



"John Smith" wrote in message
...
Some things just aren't simple are they.

I can see your point of a text field (length 4 or 5 to accomodate the "/"
?).

I would then need to validate the last two characters against the current
year and then possibly the first two against the current month.

Thanks for all your input.

"Alex White MCDBA MCSE" wrote in message
...
Hi John,

I have done a bit of testing I think using the date field type is not
going to yield the results you want, either use a text field type with
a
length of 4 with a format of "99/99" and an input mask of 99/99 or
think
about splitting the month and year into 2 different fields, 1 for month
and 1 for year both text length 2,

--
Regards

Alex White MCDBA MCSE
http://www.intralan.co.uk

"John Smith" wrote in message
...
I guess it would help if I could type - yes I do mean MM/YY of course.

Can you explain what you mean by "always set the day to 01" how do I
do
this in the table design or is this effected in the form?

Thanks for helping.

"Alex White MCDBA MCSE" wrote in message
...
Don't use a date field, use a string and validate the format are you
sure it's DD/YY rather than MM/YY, the other thing would be use a
date
field and always set the day to 01 because you never need it, it

should
not be a problem and on your screen always display MM/YY so dropping

the
day portion on the screen and any reports.


--
Regards

Alex White MCDBA MCSE
http://www.intralan.co.uk

"John Smith" wrote in message
...
Hi, This should be simple for you guys.

We need to record credit card details including "Expiry Date" in the
form of "DD/YY".

How do we best format the field for easy entry AND validation (i.e.

as
a date field and not just as a text field) without having to enter
anything other than just the month and year and with the result not
showing up as day, month year?

Please help as it is driving me nuts.













 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
format the "date" button for a header sc11 General Discussion 1 May 12th, 2005 03:48 AM
Importing and storing a different date format Jim T General Discussion 1 November 2nd, 2004 01:45 PM
Date format incorrect mail merge Emily Mailmerge 1 September 9th, 2004 10:22 AM
Date Format Date Formating Problem Database Design 3 August 16th, 2004 06:41 PM
If statement Doug Worksheet Functions 9 June 28th, 2004 06:13 AM


All times are GMT +1. The time now is 06:14 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.