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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ALTER TABLE query SET DEFAULT problem

Status
Not open for further replies.

inso18

Technical User
Dec 30, 2006
147
IL
Hi Everyone.

I'm trying to alter externally the default value in a table.

I've tried this:
ALTER TABLE tblDocs ALTER COLUMN F10 SET DEFAULT "text1"
and this
ALTER TABLE tblDocs ALTER COLUMN F10 SET DEFAULT 'text1'

without success.

Does anyone know how can this be done via SQL or via DAO maybe?

Thanks in advance,
inos18
 
Thanks for the link

I've eventually managed to change the default value using DAO.

(F10 is because it's a self generated field)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top