Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access thread: Set Default by Alter


Message #1 by "Noi" <kurt1967th@h...> on Sat, 25 Aug 2001 09:37:37
Hi all

I try to set default value to be 1 but it does not work!

Help me please.



sql1 = "ALTER TABLE Detail ADD COLUMN EngNum int NOT NULL DEFAULT 1"



I use MS-Access. 
Message #2 by "Sanna Korpela" <sanna.m.korpela@l...> on Mon, 27 Aug 2001 11:09:17
Hello!



Is it possible that you could just make alter table with sql and then open 

the table in design view and set the default there?

Sanna



> Hi all

> I try to set default value to be 1 but it does not work!

> Help me please.

> 

> sql1 = "ALTER TABLE Detail ADD COLUMN EngNum int NOT NULL DEFAULT 1"

> 

> I use MS-Access. 

  Return to Index