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

Changing Table Default Values from a Form 1

Status
Not open for further replies.

BMcMakin

Programmer
Oct 21, 2003
16
US
I have a table that has several default values in it. I would like to be able to modify the default values in a user friendly form instead of having to go into the design view of the table. Is there code that I can use?
 
You have to play with the following DAO objects:
TableDefs, TableDef, Fields, Field.
The basic idea:
CurrentDB.TableDefs("myTable").Fields("myField").DefaultValue = "New default"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top