Setting default value using SQL in ms access 2007 -
according w3schools can set default value in ms access way:
alter table persons alter column city set default 'sandnes'
but variant gives me
"syntax error in alter table instruction".
also doesn't work:
"sandnes" (sandnes)
i'm confused that. city column hasn't constraints or dependencies.
ms access 2007. i'm doing wrong ?
what important mention: should use sql view inside ms access set default value
do have sql it? otherwise this:
set default value table field
in navigation pane, right-click table want change, , click design view.
select field want change.
on general tab, type value in default value property box.
the value you can enter depends on data type set field. example, can type =date() insert current date in date/time field.
save changes.
Comments
Post a Comment