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

How do I delete a field using Code??

Status
Not open for further replies.

emumaster

Programmer
Aug 30, 2001
31
US
How do I delete a field using VBA??
 
Delete a field from a table or a field control from a form? To delete it from a table, use the following:

CurrentDb.TableDefs(<tablename or index>).Fields.Delete <fieldname>

I don't think you can delete form controls in VBA.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top