DDE connection from Access

rosemeyer

New Member
Joined
Apr 30, 2006
Messages
6
I have been given an assignment that consists of pulling data from a third-party application into an Access 2003 database.
The third-party software is WonderWare and it does not have an historian table that I can link to using ODBC. (It is a SCADA HMI program)
The ONLY connection that Wonderware will allow is a DDE connection. I can accomplish a DDE connection using Excel. However, the quantity of data I need to collect will work much better in Access tables than a flat-file Excel spreadsheet.
A typical DDE call in Excel is: \\24364DEFS\VIEW|TAGNAME!PD_VOL543232

Breakdown of string

PC Name: \\24364DEFS
Application: \VIEW
Separator: |
Topic: TAGNAME
Separator: !
Item: PD_VOL54323


Item Breakdown

Tag PD_VOL
Meter Number: 54323


Tag Names I need to collect into an Access table

C_FR Current Flow Rate
C_AP Current Absolute (Static) Pressure
C_DP Current Differential Pressure
C_T Current Gas Temperature
PD_VOL Previous Day's Volume

I've attempted to make the control source of an unbound field the same as the call from Excel. But Access does not like the | separator. Am I going to have to use VB to accomplish this? If so, does anyone have a sample piece of code that might point me in the right direction? ALL HELP WILL BE GREATLY APPRECIATED!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

SydneyGeek

MrExcel MVP
Joined
Aug 5, 2003
Messages
12,251
Hi Rose,

I have never had to use DDE so I have no nuggets up my sleeve, but this link could give you some pointers. Different software, but the techniques may be similar...

Denis
 

Forum statistics

Threads
1,136,709
Messages
5,677,324
Members
419,688
Latest member
sarahmichelle

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top