Derek,
check out the ALTER command with drop column in the help file.
the following is an extract:
ALTER TABLE TableName1 [DROP [COLUMN] FieldName3]
[SET CHECK lExpression3 [ERRORcMessageText3]] [DROP CHECK]
[ADD PRIMARY KEY eExpression3 [FOR lExpression4] TAG TagName2
[COLLATE cCollateSequence]] [DROP PRIMARY KEY]
[ADD UNIQUE eExpression4 [[FOR lExpression5] TAG TagName3
[COLLATE cCollateSequence]]] [DROP UNIQUE TAG TagName4]
[ADD FOREIGN KEY [eExpression5] [FOR lExpression6] TAG TagName4
[COLLATE cCollateSequence] REFERENCES TableName2 [TAG TagName5]]
[DROP FOREIGN KEY TAG TagName6 [SAVE]] [RENAME COLUMN FieldName4 TO
FieldName5] [NOVALIDATE]
DROP [COLUMN] FieldName3
Specifies a field to remove from the table. Removing a field from the table
also removes the field's default value setting and field validation rule.
If index key or trigger expressions reference the field, the expressions
become invalid when the field is removed. In this case, an error is not
generated when the field is removed, but the invalid index key or trigger
expressions generate errors at run time.
--
---------------------------------------------------------------------
"Are you still wasting your time with spam?...
There is a solution!"
Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://mail.spaminspector.com
Post by July DerekHi,
I create a CURSOR with different fields. How can I delete a field in
that CURSOR if all the records of that field are blank?
Thanks
Regards,
Derek