Re: Help with ALTER TABLE statement
- From: Marshall Barton <marshbarton@xxxxxxxxxx>
- Date: Tue, 14 Feb 2006 12:08:13 -0600
Allen Browne wrote:
Replace:
Number
with:
LONG
to get the Long Integer size.
Required will default to No.
The field's Format property cannot be set with a DDL query statement. You
must use DAO code to set the Format of the Field in the TableDef. However,
since you only want General Number, and the Long cannot contain fractional
values anyway, this seems irrelevant (unless it was just an example.)
To set the Indexed property, execute another DDL query statement, using
CREATE INDEX.
Allen,
Is there a reason for using a Create Index query, instead of
a CONSTRAINT clause in the ALTER TABLE query.
Robert,
As for the Format property, I think it's irrelevant in any
situation. All it does is format the table's *** view,
which should never be displayed to users, so who cares what
it looks like.
--
Marsh
MVP [MS Access]
.
- Follow-Ups:
- Re: Help with ALTER TABLE statement
- From: Allen Browne
- Re: Help with ALTER TABLE statement
- References:
- Help with ALTER TABLE statement
- From: Robert Valentine
- Re: Help with ALTER TABLE statement
- From: Allen Browne
- Help with ALTER TABLE statement
- Prev by Date: Re: Automate WinPt (GnuPG) from Access?
- Next by Date: Error handling stopped working
- Previous by thread: Re: Help with ALTER TABLE statement
- Next by thread: Re: Help with ALTER TABLE statement
- Index(es):
Loading