Microsoft KB Archive/284140

= ACC2000: Buddy Properties for UpDown Control Do Not Work in Microsoft Access =

Article ID: 284140

Article Last Modified on 7/14/2004

-

APPLIES TO


 * Microsoft Access 2000 Standard Edition

-



This article was previously published under Q284140



Novice: Requires knowledge of the user interface on single-user computers.

This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).

For a Microsoft Access 97 version of this article, see 161402.



SYMPTOMS
When you use the Microsoft UpDown control, version 6.0, in Microsoft Access 2000, you cannot use any of the Buddy properties of the control. Depending on what you are trying to do, you may receive one or more of the following error messages:

BuddyControl must be a separate control within the same container.

BuddyControl property must be set first.

Invalid property value.



CAUSE
The Buddy properties of the UpDown control are not supported by Microsoft Access 2000. The Buddy properties contain specific functionality that is supported in Microsoft Visual Basic.



RESOLUTION
Do not use any of the Buddy properties of the UpDown control in Microsoft Access 2000.



MORE INFORMATION
The Microsoft UpDown control, version 6.0, is included with Microsoft Office 2000 Developer as a replacement for the Spin Button control from earlier versions.

You can use the UpDown control in Microsoft Access 2000 with the exception of the following Buddy properties: 

BuddyControl

SyncBuddy

AutoBuddy

BuddyProperty

In Microsoft Visual Basic 6.0, when you place the UpDown control on a form, you can set the BuddyControl property to a text box that contains a numeric value. Then, without writing any code, you are able to run the form and click the UpDown control to increment or decrement the numeric value in the text box. This feature does not work in Microsoft Access 2000.

Steps to Reproduce the Behavior
 Open the sample database Northwind.mdb. Create a new form that is not based on any table or query in Design view. On the Insert menu, click ActiveX Control. In the Insert ActiveX Control dialog box, click Microsoft UpDown Control, version 6.0, and then click OK. Add a text box control to the form, and then set its Name property to Text0.</li> Double-click the UpDown control to open the UpDown Properties dialog box.</li> Click the Buddy tab, and then type Text0 in the BuddyControl box. Note that as soon as you click Apply, you receive the following error message:

BuddyControl must be a separate control within the same container.

</li></ol>

Additional query words: Spinner OCX ActiveX OLE Control ADT Developer s Toolkit Microsoft Access can t find the field prb

Keywords: kberrmsg kbprb KB284140

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.