Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what's the datatype for boolean in create table? 1

Status
Not open for further replies.

SiberBob

Programmer
Aug 28, 2002
107
US
I have the following code:

Code:
Private Sub cmdtest_Click()

    Dim dbs As Database

    Set dbs = OpenDatabase("Y:\Databases\devcopy.mdb")

    dbs.Execute "CREATE TABLE [ROTATION] (CompanyName CHAR, Rotate BINARY)"
    dbs.Close
    

End Sub

Which creates a new table for me. How do I tell it I want the field [Rotate] to be a Boolean or Yes / No field?
 
CREATE TABLE [ROTATION] (CompanyName CHAR, Rotate BIT)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top