How to Add a Field with Alert Table sentence?

F

fineman

Hi:
I want to Add a Field of short datatype using Alert Table sentence in
the a2k, but always error, someone can tele me why. thank you.

my SQL sentence:
Alter TABLE XTable Add Times short default(0)
 
F

fineman

I changed into:
Alter TABLE [downcall] Add DownCallTimes integer default(0)

the problem still exist.

please.
 
G

Graham R Seach

ALTER TABLE [downcall] ADD COLUMN DownCallTimes INTEGER

But I'm fairly certain you can't use the DEFAULT operator with Jet. You'll
probably have to use DAO or ADO.

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
---------------------------

fineman said:
I changed into:
Alter TABLE [downcall] Add DownCallTimes integer default(0)

the problem still exist.

please.


Douglas J. Steele said:
AFAIK, "short" isn't a valid field type.
 

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

Top