I have one of these http://www.taltech.com/products/winwedge and need to be able to pull the data off it. My plan was to create a button that grabs the data but its not working.
Here is my code
Function GetWedgeData()
Dim MyData As String, Chan As Long
Chan = DDEInitiate("WinWedge", "Com1")
MyData = DDERequest(Chan, "FIELD(1)")
DDETerminate Chan
If Len(MyData) = 0 Then
Dim err As String
err = "No Data, check connections"
MsgBox (err)
Else
MsgBox (MyData)
End If
End Function
When I call the GetWedgeData() function I get this.
"run time error 282 Microsoft Access can't find the application and topic because it can't open the DDE Channel"
I'm new to DDE so any nudge in the right direction would be greatly appreciated.
The scale is connected via serial port. Windows XP x86 SP3