Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Alter Table Add Column With Default value

 
   Database Help (Home) -> Visual Basic RSS
Next:  VB, DLL, Stored Procedure, Format  
Author Message
user2914

External


Since: Jan 12, 2005
Posts: 1



(Msg. 1) Posted: Tue Feb 08, 2005 9:40 am
Post subject: Alter Table Add Column With Default value
Archived from groups: microsoft>public>vb>database (more info?)

Hi,
How can i Add Column into a table with Default Value option in Access
Database?
I have given the following command but showing error"

ALTER TABLE tbl ADD COLUMN rrr Number Default 0

Thanks,

 >> Stay informed about: Alter Table Add Column With Default value 
Back to top
Login to vote
Paul Clement

External


Since: Sep 02, 2003
Posts: 236



(Msg. 2) Posted: Tue Feb 08, 2005 9:49 am
Post subject: Re: Alter Table Add Column With Default value [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Tue, 8 Feb 2005 19:00:31 +0530, "DMP" <debdulal.mahapatra.DeleteThis@fi-tek.co.in> wrote:

¤ Hi,
¤ How can i Add Column into a table with Default Value option in Access
¤ Database?
¤ I have given the following command but showing error"
¤
¤ ALTER TABLE tbl ADD COLUMN rrr Number Default 0
¤

You may have to use DAO for this. I'm not aware of any way to specify the Default value for a column
in Access using Jet DDL SQL.


Paul ~~~ pclement.DeleteThis@ameritech.net
Microsoft MVP (Visual Basic)

 >> Stay informed about: Alter Table Add Column With Default value 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Column is not found - I am using the ODBC Visual FoxPro Driver in a VB application. One part of the app processes a database of approximately 500 records with 74 fields in each record (each record is approximately 2500 bytes), collects new information for the fields in an...

Column Sorting with True DB Grid - Hello everyone, How can you sort data by column with a True DBGrid ? Thanks for your help

Data Environment Designer - need additional table fields o.. - Hello -- There are too many columns in the table to fit on a form when dragging the DED's table's Command node onto the form. I need to add to the form some of those columns which did not come onto the form in that initial dragging. After dragging..

sql query returns in wrong format - Hi, Hope someone can help me with this. I have MS SQL 2000 database where i have Table "PriceList" and there a column "Pricemk" wich is data type "money". All data in this column is in form "10001,35". So why when...

arrays - is there a way to concatenate the contents of an array (looping through the array) and storing each item in a comma delimited string? Thanks!
   Database Help (Home) -> Visual Basic All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]