J
jkoivula
Hi!
I'm using DDE-link for getting data from another
application. DDE-link is working OK, but how can i
store value from string-variable to table?
Option Compare Database
Option Explicit
Function ReadDDE()
Dim Chan1 As Long
Dim Arvo1 As String
On Error Resume Next
Shell "C:\Mel\Meldde.exe", vbHide
Chan1 = DDEInitiate("Meldde", "Std")
Arvo1 = DDERequest(Chan1, "Y1")
DoCmd.OpenTable "Data", acNormal, acEdit
DoCmd.GoToRecord acTable, "Data", acNewRec
DoCmd.Close acTable, "Data"
If Err Then
MsgBox " VIRHE " & Err.Description
End If
DDETerminateAll
End Function
So i wan't to put the value from "Arvo1" to table "Data"
How can I do it?
Thanks beforehands!
I'm using DDE-link for getting data from another
application. DDE-link is working OK, but how can i
store value from string-variable to table?
Option Compare Database
Option Explicit
Function ReadDDE()
Dim Chan1 As Long
Dim Arvo1 As String
On Error Resume Next
Shell "C:\Mel\Meldde.exe", vbHide
Chan1 = DDEInitiate("Meldde", "Std")
Arvo1 = DDERequest(Chan1, "Y1")
DoCmd.OpenTable "Data", acNormal, acEdit
DoCmd.GoToRecord acTable, "Data", acNewRec
DoCmd.Close acTable, "Data"
If Err Then
MsgBox " VIRHE " & Err.Description
End If
DDETerminateAll
End Function
So i wan't to put the value from "Arvo1" to table "Data"
How can I do it?
Thanks beforehands!