|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: |
Set Recordset1 = CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_FS_STRING
strSQL = "SELECT CustOrder.OrderID, CustOrder.RTitile, CustOrder.RFname, CustOrder.RAddy1, CustOrder.RAddy2, CustOrder.RCity, CustOrder.Rstate, CustOrder.RCountry, CustOrder.RPost, CustOrder.ShareIdentifier, CustOrder.Status, CustOrder.DateOrder, CustOrder.RAddy3, CustOrder.RCounty, CustOrder.Guardian, CustOrder.CEmail, Share.shareid, Share.sname, Share.symbol, Share.exchange " & _
"FROM CustOrder, Share " & _
"WHERE CustOrder.Status = 'Success' " & _
" AND CustOrder.ShareIdentifier = Share.shareid " & _
" AND Share.exchange = 'LSE' " & _
" AND DateDiff(d, Cast (CustOrder.DateOrder AS DateTime), GetDate()) > 2 " & _
"ORDER BY Share.shareid DESC "
Recordset1.Source = strSQL
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
VarDate = Date
VarLen = len(VarDate)
If VarLen = 10 then 'xx-xx-xxxx
Var1 = Left(VarDate , 2)
Var3 = Right(VarDate , 4)
Var2 = Mid(VarDate , 4, 2)
elseif VarLen = 9 AND Mid(VarDate , 2, 1) = "/" then 'x-xx-xxxx
Var1 = Left(VarDate , 1)
Var3 = Right(VarDate , 4)
Var2 = Mid(VarDate , 3, 2)
Var1 = "0"&Var1
elseif VarLen = 9 AND Mid(VarDate , 3, 1) = "/" then 'xx-x-xxxx
Var1 = Left(VarDate , 2)
Var3 = Right(VarDate , 4)
Var2 = Mid(VarDate , 4, 1)
Var2 = "0"&Var2
else 'x-x-xxxx
Var1 = Left(VarDate , 1)
Var3 = Right(VarDate , 4)
Var2 = Mid(VarDate , 3, 1)
Var1 = "0"&Var1
Var2 = "0"&Var2
end if
VarDate = Var2&Var1&Var3
VarQ = """"
set objComm = CreateObject("ADODB.Command")
objComm.ActiveConnection = MM_FS_STRING
set FSO = CreateObject("scripting.FileSystemObject") 'text file
FileName = Right("0" & Day(Now), 2) & Right("0" & Month(Now), 2) & Year(Now)
OutputDir = "C:\Web_Sites\FramedShare_Classic_ASP\OrderCSV\"
set myFile = fso.CreateTextFile(OutputDir & FileName & ".txt", true)
myFile.Write("##|OrderID|Company|Symbol|Exchange|Name1|Name2|Add1|Add2|Add3|City|State|County|PostCode|Country|##") & vbCrLf' SPangel CSV
While Not Recordset1.EOF
VarID = (Recordset1.Fields.Item("OrderID").Value)
' SPangel CSV ##################################################################
myFile.Write "##|" 'start - 2
myFile.Write VarID&"|" 'OrderID
myFile.Write (Recordset1.Fields.Item("sname").Value)&"|" 'Company
myFile.Write (Recordset1.Fields.Item("symbol").Value)&"|" 'Symbol
myFile.Write (Recordset1.Fields.Item("exchange").Value)&"|" 'Exchange
myFile.Write (Recordset1.Fields.Item("RTitile").Value)&" "&(Recordset1.Fields.Item("RFname").Value)&"|" 'Name1
myFile.Write (Recordset1.Fields.Item("Guardian").Value)&"|" 'Name2
myFile.Write (Recordset1.Fields.Item("RAddy1").Value)&"|" 'Add1
myFile.Write (Recordset1.Fields.Item("RAddy2").Value)&"|" 'Add2
myFile.Write (Recordset1.Fields.Item("RAddy3").Value)&"|" 'Add3
myFile.Write (Recordset1.Fields.Item("RCity").Value)&"|" 'City
myFile.Write (Recordset1.Fields.Item("Rstate").Value)&"|" 'State if us
myFile.Write (Recordset1.Fields.Item("RCounty").Value)&"|" 'County
myFile.Write (Recordset1.Fields.Item("RPost").Value)&"|" 'County
myFile.Write (Recordset1.Fields.Item("RCountry").Value)&"|" 'Country
myFile.Write "##" & vbCrLf
objComm.CommandText = "UPDATE CustOrder SET Status = '2 Share Ordered', BrokerSent ='" & MSSQLDate(NOW()) & "'" & _
" WHERE OrderID = " & VarID
objComm.Execute
Recordset1.MoveNext
Wend
myFile.Close 'close the text files
|
Advertisement
| Hall of Fame |