General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
>Is there any way of changing a field's DefaultValue programmatically? Some our clients want to default certain fields differently and I'd like to do it through the DBC. Any ideas?
I would have a table of all the fields and their default values. Then, in the default value, try putting a function call (UDF, Stored Procedure, or just a Lookup() call) in there that goes and looks for the field in the table and returns the specified default value (of course you'll need to make the types match).
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only