Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending command to Access using DDE

Status
Not open for further replies.

elziko

Programmer
Nov 7, 2000
486
GB
I have a command in Access inside a module which works just fine:

DoCmd.OpenForm "Section38 Current", acNormal, "", "[Section38 Current]![Road Name Rd1]=""Oberon Road""", , acNormal

I then write the correct code to send the same as a DDE command as a string:

"[OpenForm "Section38 Current", acNormal, "", "[Section38 Current]![Road Name Rd1]=""Oberon Road""", , acNormal]"

which doesnt work and gives a "Foreign Application Wont Perform DDE Method Or operation" error in the application that issues the DDE command. (Visual Basic 5 app that I'm TRYING to write). I'm definitely innitiating the dde conversation correctly because I'm able to run macros and do other things.

Thanks for ANY help

elziko
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top