Microsoft Access Field Format ???

Reply

Join Date: Jan 2006
Posts: 89
Reputation: j4mes_bond25 is an unknown quantity at this point 
Solved Threads: 0
j4mes_bond25's Avatar
j4mes_bond25 j4mes_bond25 is offline Offline
Junior Poster in Training

Microsoft Access Field Format ???

 
0
  #1
Jan 19th, 2006
Friend of mine is working on making a Bank Database in Microsoft Access.

After trying different validation format, we failed to get exactly what we wanted.

We did the setting for "Account Number" as "AutoNumber" & set the format in the way, that every time the new record gets created, this "Account Number" keeps on increasing by one (which we did by having "New Values as Increment"). However, since account number we want needs to be at least 5 digit long, I wonder how do we go about doing so ??? (attachment can be seen)

Furthermore, in another table, we want to set some sort of format for "Credit/Debit Card" in the way, that it has to be 16 digit long with "space" after each of the 4 digit i.e. in the format "0000 0000 0000 0000" & we wish this to be "Auto Number" & New Values as "Random", however, when we tried we kept on getting "-" sign in front of some of these "Credit/Debit Card" number, once we start typing other details. Additionally, what we want is even if we type in say "1000100010001000", some sort of format/validation automatically changing it to "1000 1000 1000 1000" (i.e. space after 4 digits) & we also want validation, which means the digit should NOT go over 16 & should NOT be less than 16.

Can anyone help in getting what we want in both of these cases i.e. the "Account Number" & "Credit/Debit Card".
Attached Thumbnails
pic.jpg  
Nope, I'm NOT God, but I'm British (which is the next best thing ;)
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 7
Reputation: abhinaynagpal is an unknown quantity at this point 
Solved Threads: 0
abhinaynagpal abhinaynagpal is offline Offline
Newbie Poster

Re: Microsoft Access Field Format ???

 
0
  #2
Jan 20th, 2006
see if there is initial vlue column,if there is set it to appropriate vlaue,else insert adummy record with a 5 digit account no.and next time onwards it will get incremented!
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 3
Reputation: LEwen is an unknown quantity at this point 
Solved Threads: 0
LEwen LEwen is offline Offline
Newbie Poster

Re: Microsoft Access Field Format ???

 
0
  #3
Sep 9th, 2008
Keep the auto number field but format the output to a 5 digit length as follows: right(cstr("00000" & [AutoNumberField]),5)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC