R
Rob
I have Access build a new database and wish to have the new database
auto-open a particular form. I am trying to do this by creating a new
property in the new db. Here's the relevant code:
Dim updaterDB as Database
Set updaterDB = OpenDatabase("MyNewDatabase")
Dim newProp as Property
Set newProp = updaterDB.Properties.CreateProperty
With newProp
.Name = "StartupForm"
.Type = 10
.Value = "Form.MainForm"
End With
updaterDB.Properties.Append (newProp)
When I get to the last line above, I get an RTE "Object Required". What am
I doing wrong?
Thanks,
auto-open a particular form. I am trying to do this by creating a new
property in the new db. Here's the relevant code:
Dim updaterDB as Database
Set updaterDB = OpenDatabase("MyNewDatabase")
Dim newProp as Property
Set newProp = updaterDB.Properties.CreateProperty
With newProp
.Name = "StartupForm"
.Type = 10
.Value = "Form.MainForm"
End With
updaterDB.Properties.Append (newProp)
When I get to the last line above, I get an RTE "Object Required". What am
I doing wrong?
Thanks,