Advertisement
| Hall of Fame |
|
[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: |
Public Function FTIRConnection()
Dim sConn As String
Dim oConn As ADODB.Connection
Dim rstOra As ADODB.Recordset, rs As ADODB.Recordset
Dim adoRS As ADODB.Recordset
Dim cn As ADODB.Connection
Dim ctl As Control
Dim j, i As String
Dim rsField, tblField As String
Dim rsValue, tblValue As String
Set cn = CurrentProject.Connection
sConn = "Provider=OraOLEDB.Oracle;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)" & _
"(Host=o"")(Port="")))(CONNECT_DATA=(SID=ftcsverf)));" & _
"User Id="";Password='';"
Set adoConn = New ADODB.Connection
adoConn.Open sConn
Set adoRS = New ADODB.Recordset
CurrentDb.Execute "Delete * from tblFTIR_vw"
Set rs = New ADODB.Recordset
strSQL = "Select * from tblFTIR_vw"
rs.Open strSQL, cn, adOpenDynamic, adLockOptimistic
strSQL = " SELECT FTIR_MEASNO, FTIR_APNO, FTIR_TITLE, FTIR_RM, FTIR_SPS, FTIR_MIN, FTIR_MAX, FTIR_UNITS," & _
" FTIR_ACC, FTIR_TYPE, FTIR_LOC, FTIR_FLTR, FTIR_HCO, FTIR_LCO, FTIR_BUSNAME, FTIR_SU, FTIR_EU_SU," & _
" FTIR_EU, FTIR_SPHDL, FTIR_DESC, FTIR_MAINTCD, FTIR_CMT, FTIR_INSTLDWGNO, FTIR_LAST_REVISOR," & _
" FTIR_LAST_REVISION_DATE" & _
" FROM FTCSVERF.FTIR_DNLD_VI_VW" ' & _
" WHERE FTIR_APNO =" & Chr(39) & UCase(gAPNo) & Chr(39) & ""
'" & gAPNo & "'"
Debug.Print strSQL
adoRS.Open strSQL, adoConn, adOpenStatic, adLockPessimistic
'Recreates the temp table with FTIR data.
'**************
Do Until adoRS.EOF
rs.AddNew
For j = 0 To adoRS.Fields.count - 1
Debug.Print adoRS.Fields
rs(j) = Nz(adoRS(j))
Next j
rs.Update
adoRS.MoveNext
Loop
End Function
|