Thank you for your effort, but I have to say that I didn't get it to work. Now I get
Compile error:
Type mismatch
and the CreateControl is highlighted in Visual Basic window.
I have tried different variations of this code, but nothing seems to work.
Private Sub btnAdd_Click()
Dim ctlLabel...
Thanks for your quick reply! Actually I found the help topic after I had sent the question. Now I know how to add new controls to a new form, but I haven't managed to add controls to an existing form.
When try the following code I keep getting error message:
Run-time error '29054':
Microsoft...
Hi!
Is it possible to make controls like text boxes and buttons to a form by vba coding? For example, clicking a button on a form makes a new text box to the form.
If this is possible, how can it be done?
I have database in multi user environment. I have splitted the database to front end and back end.
The problem is that sometimes Access deletes a record from one table (always the same table). The situation when this happens is usually this kind:
On a form there are records from one table...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.