
July 8th, 2004, 09:58 PM
|
|
Registered User
|
|
Join Date: Jun 2004
Posts: 11
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
VBA Problem...
Hi, sorry, I`ve been posting this question in the Access forum and no one answers... so hopefully this is the
right place to go.
I am trying to add controls to my form dynamically when a button is clicked on my form. So far I`ve tried:
1.
ctlONO = New Label
ctlONO.ID = "Label1"
Me.Controls.Add (ctlONO)
2.
Dim myLabel As Label
Set myLabel = Me.Controls.Add _
("Forms.Label.1", "lblPrompt")
3.
Set ctlONO = CreateControl("納期日", acLabel, acDetail, , strONO, ONO.Left, 250)
all to no avail... I am using Access 2000 and it says it cannot find an add function for the first two and the third attemp
I get an error that I don`t understand at all.. Can anyone help me?
Danny
|