D
doctim
I'm trying to create a boolean field and set it's property to "Yes/
No", using VBA from an Excel spreadsheet (Office 2007, Win XP Pro
SP2). Code snippet is:
Set fd = tDef.CreateField(fieldName, dbBoolean)
Set prp = fd.CreateProperty("Format", dbText, "Yes/No")
fd.Properties.Append prp
I get a 3219 error at the last line. All variables have been declared
and I've included a ref to DAO 3.6 Object library. Rest of the code
runs fine, it's just setting the property that I've got problems with.
Any suggestions.
Thanks
Tim
No", using VBA from an Excel spreadsheet (Office 2007, Win XP Pro
SP2). Code snippet is:
Set fd = tDef.CreateField(fieldName, dbBoolean)
Set prp = fd.CreateProperty("Format", dbText, "Yes/No")
fd.Properties.Append prp
I get a 3219 error at the last line. All variables have been declared
and I've included a ref to DAO 3.6 Object library. Rest of the code
runs fine, it's just setting the property that I've got problems with.
Any suggestions.
Thanks
Tim