DDEInitiate Command

danny123

Registered User.
Local time
Today, 11:40
Joined
Jul 21, 2006
Messages
100
Hi there,

In one of my access application one form is getting data from some other server.
This below line of code is getting used.

Dnumber = CStr(Forms![Results Hit List].Form![RecordId]) + I
x = DDEInitiate("AEX", "ODBC")
DDEExecute x, Dnumber

Can some one please tell me how DDEInitiate is working here?
I mean AEX is the name of ODBC connection or what?

Thanks
Danny
 
Straight out of Access Help:

(Hint: "AEX" is the name of some application you guys have, and "ODBC" is a verb that is understood by the "AEX" application.)

_________________________________________________

You can use the DDEInitiate function to begin a dynamic data exchange (DDE) conversation with another application. The DDEInitiate function opens a DDE channel for transfer of data between a DDE server and client application.

For example, if you wish to transfer data from a Microsoft Excel spreadsheet to a Microsoft Access database, you can use the DDEInitiate function to open a channel between the two applications. In this example, Microsoft Access acts as the client application and Microsoft Excel acts as the server application.

DDEInitiate(application, topic)

The DDEInitiate function has the following arguments.

Argument Description
application A string expression identifying an application that can participate in a DDE conversation. Usually, the application argument is the name of an .exe file (without the .exe extension) for a Microsoft Windows–based application, such as Microsoft Excel.
topic A string expression that is the name of a topic recognized by the application argument. Check the application's documentation for a list of topics.

Remarks
If successful, the DDEInitiate function begins a DDE conversation with the application and topic specified by the application and topic arguments, and then returns a Long integer value. This return value represents a unique channel number identifying a channel through which data transfer can take place. This channel number is subsequently used with other DDE functions and statements.

If the application isn't already running or if it's running but doesn't recognize the topic argument or doesn't support DDE, the DDEInitiate function returns a run-time error.

The value of the topic argument depends on the application specified by the application argument. For applications that use documents or data files, valid topic names often include the names of those files.

Note: The maximum number of channels that can be open simultaneously is determined by Microsoft Windows and your computer's memory and resources. If you aren't using a channel, you should conserve resources by terminating it with a DDETerminate or DDETerminateAll statement.
 
Thanks for reply,

Yeah i got it this database is using a application AEX to scan the images and store on the other server.
So can you please suggest where should i start looking for this odbc connection.

Thanks
Danny
 
I don't know what the AEX application is, but "ODBC" is a "topic" that is understood by the AEX application. As the help file says:

topic: A string expression that is the name of a topic recognized by the application argument. Check the application's documentation for a list of topics.

In other words, the answer you're after is somewhere in the documentation for the AEX application. DDE in general is not specific to Microsoft products, so each topic's meaning will be different depending on the host application (AEX in your case).
 

Users who are viewing this thread

Back
Top Bottom