Field size question

One of the fields in my Access dB is used for a phone number (XXX) XXX-XXXX

I had initialy sized that field as a long integer but after creating my form in VB.Net found that I couldn't enter all of the digits.

I went back to the dB design and created that field as a Double. Now when I try to run my VB form I get the error saying that the value is either to large or too small for Int32. The expected type is Int32.

I tried changing the value of the Max Length property of the field which was initialy set to 32767.

Then I tried to re save the .XSD file in the solution explorer. still no change.

Does anyone have any idea

Thanks

tattoo



Answer this question

Field size question

  • R. Muti

    Considering that it's a phone number and you're not relying on any calculations with it, I would probably use a string (e.g., varchar(10)). There is no need for double precision for this.

  • David Krmpotic

    Good Point,

    Thanks.


  • Field size question