Link to home
Start Free TrialLog in
Avatar of MBackhaus
MBackhaus

asked on

How to Create Object in VBA-Access?

How can I Add a new Object (Access.TextBox)to a Form?
CreateObject ("Access.TextBox") dosnt work.
The "VB-Way" Me.Controls.Add dosnt exist.
Please help.
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

You cannot do it this way. Try adding "Microsoft Forms 2.0" to your components.
Avatar of jk_nj
jk_nj

Well before you access any object you must have a reference to that object(.ocx or a .dll). If you are trying to add a text box to an access form you can simply drag the Access textbox and modify its properties and methods. You also have the option of adding the Microsoft Forms 2.o text box or you can add other Active X Controls into your Access application. If this doesnt help let me know exactly what your doing and I will help you out.

JK
Avatar of MBackhaus

ASKER

The Form I try do build, should be like a editor. The layout of the "new created" form i have to save into the db. But i dont know, how i can create m textbox and n lines while the form is active.

thx for help
ASKER CERTIFIED SOLUTION
Avatar of eScapePro
eScapePro

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial