creating controls in vba dynamically

willem
08-03-2001, 06:29 PM
It is possible in VB to create controls like textboxes and stuff.
But is it possible in access vba?
If so which methods should i use

willem

Thinker
08-04-2001, 07:24 AM
As you might know, in VB the main way to do this is with control arrays. I don't believe VBA supports control arrays. There is a small possibility that API calls could be used but I wouldn't bet on it because a VBA form isn't really the same as a VB form. Is there some other way to get around this like adding more controls to the form but making them invisible until needed?

I think therefore I am... sometimes right. images/icons/wink.gif

willem
08-05-2001, 07:34 AM
This was something i really liked to know. It isn't really necessary, it was for printing a report, but i noticed that every structural change you make to a report (also form) control applies to every record in that report.
So i am using filters now.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum