-
It looks like CreateControl() is yet another built-in Access function that Microsoft didn't bother to document in their help files... at least in my version of Access 2000, anyway. However, I did finally find the syntax for it. With that in mind, my first two questions are:
- Why did you set the ColumnName parameter to "NewLabel"? Even if Articulo's recordset table contained a field by this name, a label cannot be a data-bound control anyway. Does this serve another purpose?
- By any chance is your form less than 0.7" wide (1000 twips), or the Detail section less than .07" tall (100 twips)?
Try omitting all the optional arguments of CreateControl, using just this:
[VBA]
Set ctlLabel = CreateControl(Forms!Articulo.Name, acLabel)
[/VBA]
If that works, try including the additional parameters one by one to see what causes the error.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules