Notes
Notes - notes.io |
On Error GoTo ErrorHandler
Dim db As DAO.Database
Set db = CurrentDb
'DoCmd.DeleteObject acTable, "08_Titles_Exclude_IT"
Dim strsqlx As String
strsqlx = "SELECT final.TITLE, FIRST(QC_Details) as QC, Count(TITLE) as Count_ into [08_Titles_Exclude_IT] " & _
"FROM final " & _
"WHERE Not ( " & _
"title like '*Info*' or title like '*Network*' or title like '*Software*' " & _
"or title like '*System*' or title like '*Tech*' or title like '*Web*' " & _
"or title like '*Data*' or title like '*Cloud*' or title like '*Computer*' or title like '*App*') " & _
"and (final.qc_details is null or final.qc_details = '') " & _
"GROUP BY final.TITLE ORDER BY Count(TITLE) DESC;"
' Open the temporary table in datasheet view
On Error Resume Next
db.Execute strsqlx
On Error GoTo ErrorHandler
DoCmd.OpenTable "08_Titles_Exclude_IT", acViewNormal
db.Close
Set db = Nothing
'MsgBox "Update completed successfully."
Exit Sub
ErrorHandler:
GlobalErrorHandler Err
End Sub
Public Sub SUB_09_Titles_Exclude_Finance_IT()
On Error GoTo ErrorHandler
Dim db As DAO.Database
Set db = CurrentDb
'DoCmd.DeleteObject acTable, "09_Titles_Exclude_Finance_IT"
Dim strsqlx As String
strsqlx = "SELECT final.TITLE, FIRST(QC_Details) as QC, Count(TITLE) as Count_ into [09_Titles_Exclude_Finance_IT] " & _
"FROM final " & _
"WHERE Not ( " & _
"title like '*Account*' or title like '*Asset*' or title like '*Audit*' " & _
"or title like '*Bank*' or title like '*Billing*' or title like '*Compliance*' " & _
"or title like '*Credit*' or title like '*Financ*' or title like '*Invest*' " & _
"or title like '*Revenue*' or title like '*Risk*' or title like '*Treasur*' " & _
"or title like '*Claim*' or title like '*Collection*' or title like '*Controller*' " & _
"or title like '*Cost*' or title like '*Fund*' or title like '*Insurance*' or title like '*Payroll*' " & _
"or title like '*Portfolio*' or title like '*Tax*' or title like '*Cash*' " & _
"or title like '*Loan*' or title like '*Mortgage*' or title like '*Brokerage*' " & _
"or title like '*Info*' or title like '*Network*' or title like '*Software*' " & _
"or title like '*System*' or title like '*Tech*' or title like '*Web*' " & _
"or title like '*Data*' or title like '*Cloud*' or title like '*Computer*' or title like '*App*') " & _
"and (final.qc_details is null or final.qc_details = '') " & _
"GROUP BY final.TITLE ORDER BY Count(TITLE) DESC;"
' Open the temporary table in datasheet view
On Error Resume Next
db.Execute strsqlx
On Error GoTo ErrorHandler
DoCmd.OpenTable "09_Titles_Exclude_Finance_IT", acViewNormal
db.Close
Set db = Nothing
'MsgBox "Update completed successfully."
Exit Sub
ErrorHandler:
GlobalErrorHandler Err
End Sub
Public Sub SUB_a_Titles_Include_CVDM()
On Error GoTo ErrorHandler
Dim db As DAO.Database
Set db = CurrentDb
'DoCmd.DeleteObject acTable, "a_Titles_Include_CVDM"
Dim strsqlx As String
strsqlx = "SELECT final.TITLE, FIRST(QC_Details) as QC, Count(TITLE) as Count_ into [a_Titles_Include_CVDM] " & _
"FROM final " & _
"WHERE ( " & _
"title like '*director*' or title like '*manager*' or title like '*chief*' " & _
"or title like '*head*' or title like '*president*' or title like '*chairman*' " & _
"or title like '*owner*' or title like '*founder*' or title like '*partner*' " & _
"or title like '*principle*') " & _
"and (final.qc_details is null or final.qc_details = '') " & _
"GROUP BY final.TITLE ORDER BY Count(TITLE) DESC;"
' Open the temporary table in datasheet view
On Error Resume Next
db.Execute strsqlx
On Error GoTo ErrorHandler
DoCmd.OpenTable "a_Titles_Include_CVDM", acViewNormal
db.Close
Set db = Nothing
'MsgBox "Update completed successfully."
Exit Sub
ErrorHandler:
GlobalErrorHandler Err
End Sub
Public Sub SUB_b_Titles_Include_Finance()
On Error GoTo ErrorHandler
Dim db As DAO.Database
Set db = CurrentDb
'DoCmd.DeleteObject acTable, "b_Titles_Include_Finance"
Dim strsqlx As String
strsqlx = "SELECT final.TITLE, FIRST(QC_Details) as QC, Count(TITLE) as Count_ into [b_Titles_Include_Finance] " & _
"FROM final " & _
"WHERE ( " & _
"title like '*Account*' or title like '*Asset*' or title like '*Audit*' " & _
"or title like '*Bank*' or title like '*Billing*' or title like '*Compliance*' " & _
"or title like '*Credit*' or title like '*Financ*' or title like '*Invest*' " & _
"or title like '*Revenue*' or title like '*Risk*' or title like '*Treasur*' " & _
"or title like '*Claim*' or title like '*Collection*' or title like '*Controller*' " & _
"or title like '*Cost*' or title like '*Fund*' or title like '*Insurance*' or title like '*Payroll*' " & _
"or title like '*Portfolio*' or title like '*Tax*' or title like '*Cash*' " & _
"or title like '*Loan*' or title like '*Mortgage*' or title like '*Brokerage*') " & _
"and (final.qc_details is null or final.qc_details = '') " & _
"GROUP BY final.TITLE ORDER BY Count(TITLE) DESC;"
' Open the temporary table in datasheet view
On Error Resume Next
db.Execute strsqlx
On Error GoTo ErrorHandler
DoCmd.OpenTable "b_Titles_Include_Finance", acViewNormal
db.Close
Set db = Nothing
'MsgBox "Update completed successfully."
Exit Sub
ErrorHandler:
GlobalErrorHandler Err
End Sub
Public Sub SUB_c_Titles_Include_IT()
On Error GoTo ErrorHandler
Dim db As DAO.Database
Set db = CurrentDb
' DoCmd.DeleteObject acTable, "c_Titles_Include_IT"
Dim strsqlx As String
strsqlx = "SELECT final.TITLE, FIRST(QC_Details) as QC, Count(TITLE) as Count_ into [c_Titles_Include_IT] " & _
"FROM final " & _
"WHERE ( " & _
"title like '*Info*' or title like '*Network*' or title like '*Software*' " & _
"or title like '*System*' or title like '*Tech*' or title like '*Web*' " & _
"or title like '*Data*' or title like '*Cloud*' or title like '*Computer*' or title like '*App*') " & _
"and (final.qc_details is null or final.qc_details = '') " & _
"GROUP BY final.TITLE ORDER BY Count(TITLE) DESC;"
' Open the temporary table in datasheet view
On Error Resume Next
db.Execute strsqlx
On Error GoTo ErrorHandler
DoCmd.OpenTable "c_Titles_Include_IT", acViewNormal
db.Close
Set db = Nothing
'MsgBox "Update completed successfully."
Exit Sub
ErrorHandler:
GlobalErrorHandler Err
End Sub
Public Sub SUB_d_Titles_Include_Finance_IT()
On Error GoTo ErrorHandler
Dim db As DAO.Database
Set db = CurrentDb
' DoCmd.DeleteObject acTable, "d_Titles_Include_Finance_IT"
Dim strsqlx As String
strsqlx = "SELECT final.TITLE, FIRST(QC_Details) as QC, Count(TITLE) as Count_ into [d_Titles_Include_Finance_IT] " & _
"FROM final " & _
"WHERE ( " & _
"title like '*Account*' or title like '*Asset*' or title like '*Audit*' " & _
"or title like '*Bank*' or title like '*Billing*' or title like '*Compliance*' " & _
"or title like '*Credit*' or title like '*Financ*' or title like '*Invest*' " & _
"or title like '*Revenue*' or title like '*Risk*' or title like '*Treasur*' " & _
"or title like '*Claim*' or title like '*Collection*' or title like '*Controller*' " & _
"or title like '*Cost*' or title like '*Fund*' or title like '*Insurance*' or title like '*Payroll*' " & _
"or title like '*Portfolio*' or title like '*Tax*' or title like '*Cash*' " & _
"or title like '*Loan*' or title like '*Mortgage*' or title like '*Brokerage*' " & _
"or title like '*Info*' or title like '*Network*' or title like '*Software*' " & _
"or title like '*System*' or title like '*Tech*' or title like '*Web*' " & _
"or title like '*Data*' or title like '*Cloud*' or title like '*Computer*' or title like '*App*') " & _
"and (final.qc_details is null or final.qc_details = '') " & _
"GROUP BY final.TITLE ORDER BY Count(TITLE) DESC;"
On Error Resume Next
db.Execute strsqlx
On Error GoTo ErrorHandler
DoCmd.OpenTable "d_Titles_Include_Finance_IT", acViewNormal
db.Close
Set db = Nothing
'MsgBox "Update completed successfully."
Exit Sub
ErrorHandler:
GlobalErrorHandler Err
End Sub
Public Sub SUB_e_Titles_Unique()
On Error GoTo ErrorHandler
Dim db As DAO.Database
Set db = CurrentDb
'DoCmd.DeleteObject acTable, "e_Titles_Unique"
Dim strsqlx As String
strsqlx = "SELECT final.TITLE, FIRST(QC_Details) as QC, Count(TITLE) as Count_ into [e_Titles_Unique] " & _
"FROM final " & _
"where (final.qc_details is null or final.qc_details = '') " & _
"GROUP BY final.TITLE ORDER BY Count(TITLE) DESC;"
On Error Resume Next
db.Execute strsqlx
On Error GoTo ErrorHandler
DoCmd.OpenTable "e_Titles_Unique", acViewNormal
db.Close
Set db = Nothing
'MsgBox "Update completed successfully."
Exit Sub
ErrorHandler:
GlobalErrorHandler Err
End Sub
Public Sub SUB_f_Industry_Unique()
On Error GoTo ErrorHandler
Dim db As DAO.Database
Set db = CurrentDb
'DoCmd.DeleteObject acTable, "f_Industry_Unique"
Dim strsqlx As String
strsqlx = "SELECT final.Industry, FIRST(QC_Details) as QC, Count(Industry) as Count_ into [f_Industry_Unique] " & _
"FROM final " & _
"where (final.qc_details is null or final.qc_details = '') " & _
"GROUP BY final.INDUSTRY ORDER BY Count(Industry) DESC;"
On Error Resume Next
db.Execute strsqlx
On Error GoTo ErrorHandler
DoCmd.OpenTable "f_Industry_Unique", acViewNormal
db.Close
Set db = Nothing
'MsgBox "Update completed successfully."
Exit Sub
ErrorHandler:
GlobalErrorHandler Err
End Sub
Public Sub SUB_g_eTLD_Unique()
On Error GoTo ErrorHandler
Dim db As DAO.Database
Set db = CurrentDb
'DoCmd.DeleteObject acTable, "g_eTLD_Unique"
Dim strsqlx As String
strsqlx = "SELECT final.Country, final.eTLD, FIRST(QC_Details) as QC, Count(eTLD) as Count_ into [g_eTLD_Unique] " & _
"FROM final " & _
"where (final.qc_details is null or final.qc_details = '') " & _
"GROUP BY final.Country,Final.eTLD ORDER BY eTLD ASC;"
On Error Resume Next
db.Execute strsqlx
On Error GoTo ErrorHandler
DoCmd.OpenTable "g_eTLD_Unique", acViewNormal
db.Close
Set db = Nothing
'MsgBox "Update completed successfully."
Exit Sub
ErrorHandler:
GlobalErrorHandler Err
End Sub
Public Sub SUB_h_City_State_Unique()
On Error GoTo ErrorHandler
Dim db As DAO.Database
Set db = CurrentDb
'DoCmd.DeleteObject acTable, "h_City_State_Unique"
Dim strsqlx As String
strsqlx = "SELECT final.Country, final.City, final.State, FIRST(QC_Details) as QC, Count(City+State) as Count_ into [h_City_State_Unique] " & _
"FROM final " & _
"where (final.qc_details is null or final.qc_details = '') " & _
"GROUP BY final.Country,Final.City,final.State ORDER BY City+State ASC;"
On Error Resume Next
db.Execute strsqlx
On Error GoTo ErrorHandler
DoCmd.OpenTable "h_City_State_Unique", acViewNormal
db.Close
Set db = Nothing
'MsgBox "Update completed successfully."
Exit Sub
ErrorHandler:
GlobalErrorHandler Err
End Sub
Public Sub SUB_i_State_Unique()
On Error GoTo ErrorHandler
Dim db As DAO.Database
Set db = CurrentDb
'DoCmd.DeleteObject acTable, "i_State_Unique"
Dim strsqlx As String
strsqlx = "SELECT final.Country, final.State, FIRST(QC_Details) as QC, Count(State) as Count_ into [i_State_Unique] " & _
"FROM final " & _
"GROUP BY final.Country,Final.State ORDER BY Country+State ASC;"
On Error Resume Next
db.Execute strsqlx
On Error GoTo ErrorHandler
DoCmd.OpenTable "i_State_Unique", acViewNormal
db.Close
Set db = Nothing
'MsgBox "Update completed successfully."
Exit Sub
ErrorHandler:
GlobalErrorHandler Err
End Sub
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team
