hwilson542
Posts: 24
Score: 0 Joined: 3/23/2006 Status: offline
|
Hello... I am trying to get the Advert ID from a collection that is being used in Ron's Reports on SMS 2003. I tried this but it doesn't work. * * * * * * * * * dim strCollID, CompName, strAdvert, lLocator, gService strCollID = "GV100038" CompName = "GVKN0116517" set lLocator = CreateObject("WbemScripting.SWbemLocator") Set gService = lLocator.ConnectServer("GVPW64", "root/sms/site_GV1") strAdvert = gService.ExecQuery("Select AdvertisementID From SMS_Advertisement Where CollectionID = " & chr(34) & strCollID & chr(34)) msgbox "Advert: " & strAdvert * * * * * * * * * Any help is always appreciated.
_____________________________
Henry E. Wilson Sanofi-Aventis Malvern, PA 19355 610-889-6235
|