Results 1 to 7 of 7
  1. #1
    orcinus is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Apr 2010
    Posts
    67

    Creating Yes/No Field Using Make Table

    I want to be able to create a table using a make table query that has a field with a Yes/No data type..



    For example, if I want to create a Currency type field using a make table query, in the query field field I would enter:

    NameOfField: Ccur(0)

    Is there something similar I can do to create a Yes/No Data Type?

    Thanks for any assistance..

  2. #2
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    I have used this to Create a Table8 with Field ppY as a Yes/No Field. I have used the datatype BIT.
    Hope this helps.
    Dim strSQL as string
    strSQL = "Create Table Table8 (Id Number, FirstName Text, ppY BIT)"
    currentdb.execute strSQL, dbfailonerror

  3. #3
    orcinus is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Apr 2010
    Posts
    67
    Quote Originally Posted by maximus View Post
    I have used this to Create a Table8 with Field ppY as a Yes/No Field. I have used the datatype BIT.
    Hope this helps.
    Dim strSQL as string
    strSQL = "Create Table Table8 (Id Number, FirstName Text, ppY BIT)"
    currentdb.execute strSQL, dbfailonerror
    Thanks, I believe that will work in code, but was looking for if this can be done directly in a make table-query..

  4. #4
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    ...that IS a Make Table query...

    create a new query in SQL view instead of design view. paste in:
    Create Table Table8 (Id Number, FirstName Text, ppY BIT)

  5. #5
    orcinus is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Apr 2010
    Posts
    67
    Quote Originally Posted by TheShabz View Post
    ...that IS a Make Table query...

    create a new query in SQL view instead of design view. paste in:
    Create Table Table8 (Id Number, FirstName Text, ppY BIT)
    OK, my bad, I see this now, thanks..

  6. #6
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    Thanks TheShabaz for explaining.

  7. #7
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    Please mark this thread solved

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

Similar Threads

  1. Field changes in Make table query
    By asherbear in forum Queries
    Replies: 9
    Last Post: 05-29-2010, 01:35 PM
  2. Replies: 2
    Last Post: 04-20-2010, 12:47 PM
  3. creating field names in table without typing
    By GHanover in forum Database Design
    Replies: 2
    Last Post: 12-14-2009, 05:13 AM
  4. Replies: 2
    Last Post: 10-27-2009, 07:09 AM
  5. Replies: 1
    Last Post: 12-09-2005, 09:27 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