Advertisement
Advertisement
| 07.21.2008 at 06:16AM PDT, ID: 23581659 |
|
[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: |
Option Compare Database
Private Sub cmdMatch_Click()
Dim strSQL_Match As String
Dim intPID As Long
Dim strFormID As String
strFormID = "frmMatchList"
intPID = Nz(DMax("ID", "tblTempContactInfo"), 0) + 1
If intPID = 1 Or intPID = 0 Then
intPID = 2000001
End If
Select Case Me.Frame13.Value
Case 1
If MsgBox("Are you matching by First, Last, city and state", vbYesNo, "Attention") = vbNo Then
Exit Sub
Else
strSQL_Match = "UPDATE tblMatchLists INNER JOIN tblPhysContactInfo ON (tblMatchLists.State = tblPhysContactInfo.STATE) AND (tblMatchLists.City = tblPhysContactInfo.CITY) AND (tblMatchLists.Last_Name = tblPhysContactInfo.LAST_NAME) AND (tblMatchLists.First_Name = tblPhysContactInfo.FIRST_NAME)" & _
" SET tblMatchLists.PID = [tblPhysContactInfo].[ID], tblMatchLists.Added = True" & _
" WHERE (((tblMatchLists.PID) Is Null));"
DoCmd.RunSQL strSQL_Match
DoCmd.SetWarnings (True)
Debug.Print strSQL_Match
If Forms(strFormID).CurrentView <> 0 Then
Forms(strFormID).Requery
End If
MsgBox "Contact database coordinator to check your matches", vbOK, "Attention"
End If
Case 2
If MsgBox("Are you matching by Med-Num", vbYesNo, "Attention") = vbNo Then
Exit Sub
Else
strSQL_Match = "UPDATE tblMatchLists INNER JOIN tblPhysContactInfo ON tblMatchLists.MedNum = tblPhysContactInfo.MedEdNumber " & _
" SET tblMatchLists.PID = [tblPhysContactInfo].[ID], tblMatchLists.Added = True" & _
" WHERE (((tblMatchLists.PID) Is Null));"
DoCmd.RunSQL strSQL_Match
DoCmd.SetWarnings (True)
Debug.Print strSQL_Match
If Forms(strFormID).CurrentView <> 0 Then
Forms(strFormID).Requery
End If
MsgBox "Contact database coordinator to check your matches", vbOK, "Attention"
End If
Case 3
If MsgBox("Did you first attempt to match the list to the" + vbCrLf + "Master Database", vbYesNo, "Attention") = vbNo Then
Exit Sub
Else
Call AssignPIDs("tblMatchLists", "PID", intPID)
If Forms(strFormID).CurrentView <> 0 Then
Forms(strFormID).Requery
End If
MsgBox "Contact database coordinator to check your matches", vbOK, "Attention"
End If
End Select
Exit_cmdMatch_Click:
Exit Sub
Err_cmdMatch_Click:
MsgBox Err.Number & ": " & Err.Description
DoCmd.SetWarnings True
Resume Exit_cmdMatch_Click
End Sub
|