Results 1 to 3 of 3
  1. #1
    luckycharms is offline Novice
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Posts
    8

    Adding column as INTEGER makes it a long integer?

    Hi Folks,



    I'm using the code below in access 2007. The field ends up being a long integer! What's up with that? Shouldn't INTEGER be an integer, and a LONG be a long?

    Code:
    If Not FieldExists("Dosel", "BlockID") Then
            dbs.Execute "ALTER TABLE Dosel ADD COLUMN BlockID INTEGER;", dbFailOnError
    End If

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    if you want 16-bit integer, it's called short, not integer.:
    ALTER TABLE Dosel ADD COLUMN BlockID short;

  3. #3
    luckycharms is offline Novice
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Posts
    8
    awesome - thanks.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. creating records from integer range in a form
    By archzealot in forum Forms
    Replies: 8
    Last Post: 04-05-2010, 12:45 AM
  2. How to ADD integer (vba)
    By Computer202 in forum Programming
    Replies: 24
    Last Post: 03-13-2010, 08:50 AM
  3. Replies: 3
    Last Post: 04-12-2009, 05:11 PM
  4. Replies: 1
    Last Post: 10-09-2008, 04:48 AM
  5. Replies: 1
    Last Post: 06-09-2006, 05:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums