J
John
I have a table that stores the following in a field called ObjectType;
acForm, acReport, acQuery
I am trying to use a variable to call the ObjectType & place it in some
code.
But when the varibale is used, quotations are placed around the acObject.
Example:
objType = Recordset.Fields("ObjectType")
DoCmd.DeleteObject objType, "ObjectName"
When the code runs Quotations are plaed around the Variable objType
this causes my code to fail.
How do I avoid the quotes being placed around my Variable.
I hope all this makes sense.
Thanks
acForm, acReport, acQuery
I am trying to use a variable to call the ObjectType & place it in some
code.
But when the varibale is used, quotations are placed around the acObject.
Example:
objType = Recordset.Fields("ObjectType")
DoCmd.DeleteObject objType, "ObjectName"
When the code runs Quotations are plaed around the Variable objType
this causes my code to fail.
How do I avoid the quotes being placed around my Variable.
I hope all this makes sense.
Thanks