PRB: Data Object Wizard Fails If Field Names Contain Spaces
Article ID: 190112
Article Last Modified on 4/18/2003
APPLIES TO
- Microsoft Visual Basic 6.0 Professional Edition
- Microsoft Visual Basic 6.0 Enterprise Edition
This article was previously published under Q190112
SYMPTOMS
When you run the Data Object Wizard against a Data Environment Command
object, you may receive the following error message:
The field 'xxx yyy' has a space in it. You cannot select a Command where
a field has a space in its name.
CAUSE
This error occurs because the Data Object Wizard creates methods
corresponding to field names, and method names cannot contain spaces in
them.
RESOLUTION
Rename fields to eliminate spaces, or base the Command on a SELECT
statement where the field names are aliased to remove spaces.
STATUS
This behavior is by design.
Additional query words: kbvbp600 kbDatabase kbDataview kbAddIn kbdse kbDSupport kbVBp
Keywords: kbprb KB190112