PDA

View Full Version : سوال: تنظیمات اکسس 2007



aimaz23
چهارشنبه 15 آبان 1392, 12:41 عصر
سلام
من یه مشکل دارم برای فعال کردن اکتیو ایکس یا ریجستر کردنش
طبق این دستور جلو میرم


In Access 2007, open a trusted database, or enable macros in the database.
On the Create tab, click Macro in the Other group, and then click Macro.
On the Design tab, click Show All Actions in the Show/Hide group.
In the Action column, click RunCommand, and then click RegisterActiveXControls in the Command list.
Click Save.
In the Tools group, click Run.



ولی توی RunCommandاین RegisterActiveXControlsپیدا نمیکنم تنظیمات خاصی داره؟

bita_ziba77
پنج شنبه 30 آبان 1392, 12:57 عصر
با سلام
از روش جايگزيني Microsoft استفاده نماييد:
Method 1: Use Visual Basic code

To use Visual Basic code to register or unregister an ActiveX control, run the code directly in the Immediate window, or create a module that contains the code.

To run the Visual Basic code directly in the Immediate window, follow these steps:

In Access 2007, open a trusted database, or enable macros in the database.
Press CTRL+G to open the Immediate window.
Type the following code, and then press ENTER. DoCmd.RunCommand acCmdRegisterActiveXControls


To create a module that contains the Visual Basic code, follow these steps:

In Access 2007, open a trusted database, or enable macros in the database.
On the Create tab, click Macro in the Other group, and then click Module.
Create a subroutine that includes the following Visual Basic code.DoCmd.RunCommand acCmdRegisterActiveXControls

Press F5 to run the code.