I am just about to migrate a database from mdb to adp format - and experienced a real difficulty in retrieving a table field's default value by VBA code (using the ADODB 2.8 Library).
In DAO it simply works like this
Expand|Select|Wrap|Line Numbers
- set rst = dbobject.OpenRecordset("sqlstatement")
- set fld = rst.Fields("FIELD1")
- Debug.Print fld.DefaultValue
I need this code to determine, if the user entered a new value on the form or if he just left the default value of the field untouched.
Used Access Version is MS ACCESS 2003 SP3
Can anyone help me out of this trouble? - All your ideas are more than welcome and really appreciated.
Thanks a lot in advance,
Klaus