asmita
07-05-2005, 11:57 PM
hi
i am creating a property for the startupform and then adding it to the application. the code for the same is given below:
Set prp = db.CreateProperty("StartupForm", dbText, "SwitchBoard", False)
db.Properties.Append prp
db.Properties("StartupForm") = "SwitchBoard"
the above code creates a property and then adds it to the application.
but if the property already exist then it gives error saying property of the same name already exist
before appending the property i want to check whether the property exists if it exits then i just need to change the name of the form to "switchboard"
can some1 pls help.
thanks in advance :)
i am creating a property for the startupform and then adding it to the application. the code for the same is given below:
Set prp = db.CreateProperty("StartupForm", dbText, "SwitchBoard", False)
db.Properties.Append prp
db.Properties("StartupForm") = "SwitchBoard"
the above code creates a property and then adds it to the application.
but if the property already exist then it gives error saying property of the same name already exist
before appending the property i want to check whether the property exists if it exits then i just need to change the name of the form to "switchboard"
can some1 pls help.
thanks in advance :)