on 06-27-2008 11:34 PM
Hi,
I set up a user-defined field with VB code in 2005 with an edit size of one; no problem. The same code in 2007 fails saying that the field size deviates from legal range [1...11]. The "1" I am using is in the range.
Any ideas?
Thx, mike
Dear
The UserFieldsMD.Size property is the actual size of the field in the
database and is set automatically based on the value set in the
UserFieldsMD.EditSize property. You should not assign any value to the
Size property.
So in your code, replace
uf.Size = 1;
with
uf.EditSize = 1;
best regards,
xiaodan an
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.