Link to home
Start Free TrialLog in
Avatar of Grant Fullen
Grant Fullen

asked on

integers and dash'-' saved to and .mdb with field type as integer" Number"

Done some work on an app. Orignaly coded it to have the account number as integers in the .mdb database asInteger.
Now I need to use a phone number (111-111-1111) as the account number.
Problem is with a .mdb field set to integer"Number" it will not allow me to save a phonenumber to that field. What can I do to work around this. I do not want to use a memo for this.
Thanks
ASKER CERTIFIED SOLUTION
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
rfwoolf,
Your suggestion is true, but only for cases where international numbers are of concern.

Considering he is using the phone number as the account number, and he immediately provided an example in standard U.S. phone format, I doubt that he has internation phone number concerns.

And since the Account Number is something that would probably be indexed and searched upon regularly, the benefits of a number field would be best practice.

IMO.

- Anthony
Avatar of Grant Fullen
Grant Fullen

ASKER

all can apply here.
"Your suggestion is true, but only for cases where international numbers are of concern."

The suggestion is always true.  Same for zip codes.  And in neither of these cases will an Integer work because the largest size is 32,767 ... so ... forget that.  

mx
You need to ease your attitude youngster, I was simply offering a differing opinion.

Not once did I say INTEGER.  I know the limits of an Integer, this isn't my first trip around the park.

I stand by my comments.

HTH
- Anthony