K
Kevin
Hi all,
I am preparing to deploy a database to multiple sites (each site's
database is independent) and want to have embedded in every table a
site ID chosen in a "setup" form (so that at the end of the year we can
pull everything together). I think the best way to do this is by
changing the default value for the field's table. I would like to set
the default value equal to the value from a drop down box on the setup
form.
I'm not familiar with VB, so I've tried a macro with a SetValue action
with 3 different item settings:
Tables("Attendance").Fields("CYSiteID").Properties("Default")
[Attendance].[Fields]![CYSiteID].[DefaultValue]
[Tables].[Attendance].[Fields]![CYSiteID].[DefaultValue]
In each case, an error comes up: "The object doesn't contain the
Automation Object..."
I'm very probably wrong about how to go about this. If so, let me
know. I would like to avoid changing the default values on forms as to
insure that the site ID is always insured to get in, no matter how
people enter and edit info. Thanks in advance.
Kevin Jenkins
Program Manager
City Year New York
I am preparing to deploy a database to multiple sites (each site's
database is independent) and want to have embedded in every table a
site ID chosen in a "setup" form (so that at the end of the year we can
pull everything together). I think the best way to do this is by
changing the default value for the field's table. I would like to set
the default value equal to the value from a drop down box on the setup
form.
I'm not familiar with VB, so I've tried a macro with a SetValue action
with 3 different item settings:
Tables("Attendance").Fields("CYSiteID").Properties("Default")
[Attendance].[Fields]![CYSiteID].[DefaultValue]
[Tables].[Attendance].[Fields]![CYSiteID].[DefaultValue]
In each case, an error comes up: "The object doesn't contain the
Automation Object..."
I'm very probably wrong about how to go about this. If so, let me
know. I would like to avoid changing the default values on forms as to
insure that the site ID is always insured to get in, no matter how
people enter and edit info. Thanks in advance.
Kevin Jenkins
Program Manager
City Year New York