Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
jains
Starting Member
1 Post |
Posted - 2009-08-12 : 22:11:10
|
Hey when i try to run my VB Script to import data to MS Access, this is the error i get: ADODB.Field: Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. this is the part of my script giving error:Do while not ObjPerMonthRecord.EOFIPAddr = ObjPerMonthRecord(0).ValuePortID= ObjPerMonthRecord(1).ValuePortStatus= ObjPerMonthRecord(2).Valuesql="SELECT PortStatus FROM CheckUsedPortStatusMonthly WHERE IPAddr = '" & IPAddr & "' and PortID = " & PortID & ""Set rs2 = conn2.execute(sql) If rs2(0).Value = "down(2)" And PortStatus = "up(1)" ThenCondition = "[PortStatus] = '" & PortStatus & "',[Changetime] ='" & ObjPerMonthRecord(3).Value & "'"'WScript.Echo IPAddr & " " & PortID & " " & PortStatus Call ImporttoPortDescriptionMonth(Condition,IPAddr,Port ID)Else'WScript.Echo IPAddr & " " & PortID & " " & PortStatusEnd IfObjPerMonthRecord.MoveNext Loop============================================Please suggest what could be done to sort this problem.. |
|
|
|
|