SunQuest
 
           Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Iron Speed
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old July 8th, 2004, 09:58 PM
dan7117 dan7117 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 11 dan7117 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy 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

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > VBA Problem...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway