Results 1 to 2 of 2
  1. #1
    gmaster is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    May 2014
    Posts
    32

    Alter Table, YES/NO field

    Hi! I created a query that adds a Yes/No field to a table, but when i open that table this new field doesn't show up with checkboxes but with zeroes....Why? Is there a way to create it with checkboxes via SQL?



    Code:
    ALTER TABLE Table_1 ADD COLUMN Check YESNO;

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Why do you need to use code to alter a table to add a field?

    I don't think SQL can do that. Maybe requires VBA code to modify TableDef. The field was created with the Lookup Display Control property set as textbox.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. ALTER TABLE does not set field "format"
    By GraeagleBill in forum Programming
    Replies: 5
    Last Post: 09-07-2012, 01:11 PM
  2. Trying to get an Alter table to work
    By itm in forum Programming
    Replies: 5
    Last Post: 07-31-2012, 06:32 AM
  3. Alter Table syntax error
    By markjkubicki in forum Programming
    Replies: 1
    Last Post: 02-06-2012, 05:43 PM
  4. Access 2007--Alter table using vb.
    By bcofie in forum Access
    Replies: 1
    Last Post: 12-29-2011, 08:13 PM
  5. Alter table Yes/No field
    By Cojack in forum Queries
    Replies: 7
    Last Post: 10-27-2010, 11:31 AM

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