Results 1 to 3 of 3

Thread: [RESOLVED] Access Number Data Type Question

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Resolved [RESOLVED] Access Number Data Type Question

    I have some fields that need to be a number data type in my Access table. My problem is that these numbers need to be 4 digits and some begin with zeros (ie.0031). Is there anyway I can keep these as a number and not lose the zeros?

    I need them to be numbers because I am usina a query with the BETWEEN Statement and getting a type mismatch on it.

    Thanks for any help.

  2. #2
    Frenzied Member
    Join Date
    May 2004
    Location
    Carlisle, PA
    Posts
    1,045

    Re: Access Number Data Type Question

    In the Access Table Design View ...

    Set the Field Name, set the Data Type to "Number", and in the "General" Tab at the bottom of the window, in the "Format" parameter put the following:

    0000

    That will force 4 digits with leading zeros.
    Blessings in abundance,
    All the Best,
    & ENJOY!

    Art . . . . Carlisle, PA . . USA

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Re: Access Number Data Type Question

    Quote Originally Posted by Webtest
    In the Access Table Design View ...

    Set the Field Name, set the Data Type to "Number", and in the "General" Tab at the bottom of the window, in the "Format" parameter put the following:

    0000

    That will force 4 digits with leading zeros.
    TYVM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width