Updating "Default Value" attribute to table in external database

R

Rod

Help! I'm able to add a field to a table in an external
database by executing the following code...

Function fncCreateDatUpdate()
Dim db As Database
Dim tdf As TableDef

Set db = DBEngine.OpenDatabase("c:\lacc\smpdata.mdb")
Set tdf = db.TableDefs("tblDonorChild")
Set fld = tdf.CreateField("datUpdated", dbDate)
tdf.Fields.Append fld

How do I modify the "default value" of a date field in a
table that is in an external database?

Thanks for your help... Rod
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top