ACC: CreateControl() Function Always Creates Label with Colon (121667)
The information in this article applies to:
- Microsoft Access 1.1
- Microsoft Access 2.0
This article was previously published under Q121667
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
When you use the CreateControl() function to create a text box on a form,
the text box's attached label always contains a colon (:), even if you have
created your own form template and set the AddColon property for the
default text box to No.
RESOLUTION
This article assumes that you are familiar with Access Basic and with
creating Microsoft Access applications using the programming tools provided
with Microsoft Access. For more information about Access Basic, please
refer to the "Introduction to Programming" manual in Microsoft Access
version 1.1, or the "Building Applications" manual in version 2.0.
Add the following line to the sample code in step 5 of the "Steps to
Reproduce Problem" section later in this article. Insert this line before
the line that reads "DoCmd Restore" to change the label's Caption property
to remove the colon:
MyLabel.Caption=Left$(MyLabel.Caption,Len(MyLabel.Caption)-1).
STATUS
Microsoft has confirmed this to be a problem in Microsoft Access versions
1.1 and 2.0. This problem no longer occurs in Microsoft Access version 7.0.
REFERENCES
For more information about the CreateControl() function, search for
"CreateControl," and then "CreateControl, CreateReportControl Functions"
using the Microsoft Access version 2.0 Help menu.
Microsoft Access "The Secrets of AccessWizards," version 1.1, Chapter 2,
"Incantations: AccessWizard Functions and Properties," pages 12-15
Modification Type: | Major | Last Reviewed: | 5/6/2003 |
---|
Keywords: | kbbug kbusage KB121667 |
---|
|