create table SQL statement

  • Thread starter Thread starter thomasp
  • Start date Start date
T

thomasp

I am attempting to create a table in an Access database using VB2005 beta 2.
I seem to be able to get it to work all except for adding a Boolean column.
The following statement works if I remove the ""POI BOL, " & _" line from
it. Will someone please tell me the snytax for adding a boolean column?

Thanks,

Thomas


AccessCommand.CommandText = "CREATE TABLE NewUTAMS (" & _
"ID int identity, " & _
"DTG datetime, " & _
"Grid TEXT (10), " & _
"confGrid TEXT (10), " & _
"POI BOL, " & _
"confSource TEXT (50), " & _
"Weapon_Type TEXT (50), " & _
"Target_NO TEXT (4), " & _
"EastError INT, " & _
"NorthError INT, " & _
"CONSTRAINT PrimaryKey PRIMARY KEY (ID))"
 
I found my answer. I should have waited a couple more minutes before
posting.
"POI BIT, " & _ works, now if I can figure out how to make it dispay as a
checkbox in access.

Thanks,

Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top