T
Tim
Hi everyone,
I need some help for my following code. I want to pass
the field value of Receiver to strcmd. Then, I want to
loop Call Shell(strcmd, 1) for all records in my recordset.
Any help will be appreciated.
Thanks in advance.
Tim.
Code:
Public Sub Recordset()
Dim dbCurrent As Database
Dim rst As Recordset
Dim strReceiver As String
Dim strProgram As String
Dim strcmd As String
strReceiver = "Receiver" 'Field Name
strProgram = "c:\winnt\test.exe"
Set dbCurrent = DBEngine(0).Databases(0)
Set rst = dbCurrent.OpenRecordset("Select " & strReceiver
& " from Mail")
strcmd = strProgram & " " & strReceiver
Call Shell(strcmd, 1)
End Sub
I need some help for my following code. I want to pass
the field value of Receiver to strcmd. Then, I want to
loop Call Shell(strcmd, 1) for all records in my recordset.
Any help will be appreciated.
Thanks in advance.
Tim.
Code:
Public Sub Recordset()
Dim dbCurrent As Database
Dim rst As Recordset
Dim strReceiver As String
Dim strProgram As String
Dim strcmd As String
strReceiver = "Receiver" 'Field Name
strProgram = "c:\winnt\test.exe"
Set dbCurrent = DBEngine(0).Databases(0)
Set rst = dbCurrent.OpenRecordset("Select " & strReceiver
& " from Mail")
strcmd = strProgram & " " & strReceiver
Call Shell(strcmd, 1)
End Sub