Setting Default Value with code

aziz rasul

Active member
Local time
Today, 23:50
Joined
Jun 26, 2000
Messages
1,935
Is it possible to set the default value property for a field in a table using VBA code?
 
Code:
CurrentDb.TableDefs("name_of_your_table").Fields("name_of_the_field").DefaultValue = "Test"
 
Many thanks.
 

Users who are viewing this thread

Back
Top Bottom