DEExecute Statement

Microsoft Access Visual Basic

DDEExecute(channum, command)

The DDEExecute statement has the following arguments.

Argument Description
channum A channel number, the long integer returned by the DDEInitiate function.
command A string expression specifying a command recognized by the server application. Check the server application's documentation for a list of these commands.

Remarks

The value of the command argument depends on the application and topic specified when the channel indicated by the channum argument is opened. An error occurs if the channum argument isn't an integer corresponding to an open channel or if the other application can't carry out the specified command.

From Visual Basic, you can use the DDEExecute statement only to send commands to another application. For information on sending commands to Microsoft Access from another application, see Use Microsoft Access as a DDE Server.

ShowTip

If you need to manipulate another application's objects from Microsoft Access, you may want to consider using Automation.