Advertisement
Advertisement
| 10.05.2008 at 04:20AM PDT, ID: 23788420 |
|
[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: |
Private Sub cmdTestSaveBldgs_Click()
On Error GoTo ErrorHandle
Dim MailCodeID As Variant
Dim PlanID As Integer, SubPlanNo As Integer, AuthAction As String, plan As String
Dim desc As String, approval As Date, auth As Date, MailCode As String
Dim rst As ADODB.Recordset, rst1 As ADODB.Recordset, rst2 As ADODB.Recordset, rst3 As ADODB.Recordset
desc = Me!txtPlanDescription
plan = Me!txtPlanNo
approval = Me!txtCharterApprovalDate
'auth = Me.txtAuthDate
'rst = tblPlan
'rst1 = TempSPBuildingInfo table
'rst2 = tblStrPlanBldgs
'rst3 = tblMailCodes
Set rst = New ADODB.Recordset
With rst
.Open "tblPlan", CurrentProject.Connection, adOpenDynamic, adLockPessimistic
.Find "PlanNo = '" & plan & "'"
Debug.Print .Fields("PlanNo").Value
PlanID = .Fields("PlanAutoID").Value
Debug.Print .Fields("PlanAutoID").Value
End With
'MailCodeID = DLookup("[mailcodeid]", "[tblmailcodes]", "[tblmailcodes].[mailcode] = " & [tblapatemp2].[Mail Code] & "'")
Set rst1 = New ADODB.Recordset
With rst1
.Open "TempSPBuildingInfo", CurrentProject.Connection, adOpenStatic, adLockOptimistic
Do While Not rst1.EOF
MailCode = .Fields("Mail Code").Value
With rst3
Set rst3 = New ADODB.Recordset
Do While Not rst3.EOF
.Open "tblMailCodes", CurrentProject.Connection, adOpenDynamic, adLockOptimistic
.Find "Mailcode = '" & MailCode & "'"
MailCodeID = .Fields("mailcodeid").Value
MsgBox MailCodeID
rst3.MoveNext
Loop
End With
Debug.Print .Fields("Mail Code").Value
AuthAction = .Fields("Action").Value
Debug.Print .Fields("Action").Value
rst1.MoveNext
Loop
End With
rst.Close
rst1.Close
rst3.Close
ExitHere:
Set rst = Nothing
Set rst1 = Nothing
Set rst3 = Nothing
Exit Sub
ErrorHandle:
MsgBox Err.Number & ": " & Err.Description
Resume ExitHere
End Sub
|