Can you please see why the Message>tech errors out
It says compilation error
VBSTART
set ShipDB = CreateObject("ADODB.Connection")
ShipDB.Open "maketickets"
SQLString = "select * from FLINLAND"
set rsPickList = ShipDB.Execute(SQLString)
rsPickList.MoveFirst
Function GetNextRecord
If Not rsPickList.EOF then
tech = rsPickList.Fields("Technician")
Message>tech
else
GetNextRecord = 0
end if
End Function
ShipDB.Close
VBEND
simple message>Hi not working
Moderators: JRL, Dorian (MJT support)
-
- Newbie
- Posts: 9
- Joined: Tue Aug 09, 2005 3:39 pm
simple message>Hi not working
Pinkpanther
You're confusing VBScript code with native Macro Scheduler code. Replace Message>tech line with:
MsgBox tech
VBSTART
set ShipDB = CreateObject("ADODB.Connection")
ShipDB.Open "maketickets"
SQLString = "select * from FLINLAND"
set rsPickList = ShipDB.Execute(SQLString)
rsPickList.MoveFirst
Function GetNextRecord
If Not rsPickList.EOF then
tech = rsPickList.Fields("Technician")
MsgBox tech
else
GetNextRecord = 0
end if
End Function
ShipDB.Close
VBEND
MsgBox tech
VBSTART
set ShipDB = CreateObject("ADODB.Connection")
ShipDB.Open "maketickets"
SQLString = "select * from FLINLAND"
set rsPickList = ShipDB.Execute(SQLString)
rsPickList.MoveFirst
Function GetNextRecord
If Not rsPickList.EOF then
tech = rsPickList.Fields("Technician")
MsgBox tech
else
GetNextRecord = 0
end if
End Function
ShipDB.Close
VBEND
MJT Net Support
[email protected]
[email protected]