Advertisement
Guest User

Untitled

a guest
Aug 4th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.10 KB | None | 0 0
  1. SELECT [Map index].[Map_Number], [Map index].Surveyor, [Map index].[Map_Name], [Map index].County, [Map index].NY_County, [Map index].[Map_Type], [Map index].Town, [Map index].NY_Town, [Map index].Address, [Map index].Street, [Map index].[Drawing_Number], [Map index].[Project_Number], [Map index].[Block], [Map index].[Lot], [Map index].[Group], [Map index].[Folder], [Map index].[Latitude], [Map index].[Longitude], [Map index].[Map_Date]
  2. FROM [Map index]
  3. WHERE ((([Map index].Surveyor) Like "*" & [Forms]![DW_Form]![Surveyor] & "*") OR (([Map index].Surveyor)=[Forms]![DW_Form]![Surveyor]) Is Null)
  4. AND ((([Map index].State) Like "*" & [Forms]![DW_Form]![State] & "*") OR (([Forms]![DW_Form]![State]) Is Null))
  5. AND ((([Map index].County) Like "*" & [Forms]![DW_Form]![County] & "*") OR (([Forms]![DW_Form]![County]) Is Null))
  6. AND ((([Map index].Town) Like "*" & [Forms]![DW_Form]![Town] & "*") OR (([Forms]![DW_Form]![Town]) Is Null))
  7. AND ((([Map index].Address) Like "*" & [Forms]![DW_Form]![Address] & "*" ) OR (([Forms]![DW_Form]![Address]) Is Null))
  8. AND ((([Map index].[Map_Type]) Like "*" & [Forms]![DW_Form]![Map_Type] & "*") OR (([Forms]![DW_Form]![Map_Type]) Is Null))
  9. AND ((([Map index].[Project_Number]) Like "*" & [Forms]![DW_Form]![Project] & "*") OR (([Forms]![DW_Form]![Project]) Is Null))
  10. AND ((([Map index].[Drawing_Number]) Like "*" & [Forms]![DW_Form]![Drawing] & "*") OR (([Forms]![DW_Form]![Drawing]) Is Null))
  11. AND ((([Map index].[Map_Name]) Like "*" & [Forms]![DW_Form]![Map_Name] & "*") OR (([Forms]![DW_Form]![Map_Name]) Is Null))
  12. AND (
  13. ((([Map index].[Street]) Like "*" & [Forms]![DW_Form]![Street] & "*") OR (([Forms]![DW_Form]![Street]) Is Null))
  14. OR ((([Map index].[Street_2]) Like "*" & [Forms]![DW_Form]![Street] & "*") OR (([Forms]![DW_Form]![Street]) Is Null))
  15. OR ((([Map index].[Street_3]) Like "*" & [Forms]![DW_Form]![Street] & "*") OR (([Forms]![DW_Form]![Street]) Is Null))
  16. OR ((([Map index].[Street_4]) Like "*" & [Forms]![DW_Form]![Street] & "*") OR (([Forms]![DW_Form]![Street]) Is Null))
  17. OR ((([Map index].[Street_5]) Like "*" & [Forms]![DW_Form]![Street] & "*") OR (([Forms]![DW_Form]![Street]) Is Null))
  18. OR ((([Map index].[Street_6]) Like "*" & [Forms]![DW_Form]![Street] & "*") OR (([Forms]![DW_Form]![Street]) Is Null))
  19. OR ((([Map index].[Street_7]) Like "*" & [Forms]![DW_Form]![Street] & "*") OR (([Forms]![DW_Form]![Street]) Is Null))
  20. OR ((([Map index].[Street_8]) Like "*" & [Forms]![DW_Form]![Street] & "*") OR (([Forms]![DW_Form]![Street]) Is Null))
  21. OR ((([Map index].[Street_9]) Like "*" & [Forms]![DW_Form]![Street] & "*") OR (([Forms]![DW_Form]![Street]) Is Null))
  22. OR ((([Map index].[Street_10]) Like "*" & [Forms]![DW_Form]![Street] & "*") OR (([Forms]![DW_Form]![Street]) Is Null))
  23. )
  24. AND (
  25. ((([Map index].[Name_1]) Like "*" & [Forms]![DW_Form]![Name] & "*") OR (([Forms]![DW_Form]![Name]) Is Null))
  26. OR ((([Map index].[Name_2]) Like "*" & [Forms]![DW_Form]![Name] & "*") OR (([Forms]![DW_Form]![Name]) Is Null))
  27. OR ((([Map index].[Name_3]) Like "*" & [Forms]![DW_Form]![Name] & "*") OR (([Forms]![DW_Form]![Name]) Is Null))
  28. OR ((([Map index].[Name_4]) Like "*" & [Forms]![DW_Form]![Name] & "*") OR (([Forms]![DW_Form]![Name]) Is Null))
  29. OR ((([Map index].[Name_5]) Like "*" & [Forms]![DW_Form]![Name] & "*") OR (([Forms]![DW_Form]![Name]) Is Null))
  30. OR ((([Map index].[Name_6]) Like "*" & [Forms]![DW_Form]![Name] & "*") OR (([Forms]![DW_Form]![Name]) Is Null))
  31. OR ((([Map index].[Name_7]) Like "*" & [Forms]![DW_Form]![Name] & "*") OR (([Forms]![DW_Form]![Name]) Is Null))
  32. OR ((([Map index].[Name_8]) Like "*" & [Forms]![DW_Form]![Name] & "*") OR (([Forms]![DW_Form]![Name]) Is Null))
  33. OR ((([Map index].[Name_9]) Like "*" & [Forms]![DW_Form]![Name] & "*") OR (([Forms]![DW_Form]![Name]) Is Null))
  34. OR ((([Map index].[Name_10]) Like "*" & [Forms]![DW_Form]![Name] & "*") OR (([Forms]![DW_Form]![Name]) Is Null))
  35. OR ((([Map index].[Name_11]) Like "*" & [Forms]![DW_Form]![Name] & "*") OR (([Forms]![DW_Form]![Name]) Is Null))
  36. OR ((([Map index].[Name_12]) Like "*" & [Forms]![DW_Form]![Name] & "*") OR (([Forms]![DW_Form]![Name]) Is Null))
  37. OR ((([Map index].[Name_13]) Like "*" & [Forms]![DW_Form]![Name] & "*") OR (([Forms]![DW_Form]![Name]) Is Null))
  38. OR ((([Map index].[Name_14]) Like "*" & [Forms]![DW_Form]![Name] & "*") OR (([Forms]![DW_Form]![Name]) Is Null))
  39. OR ((([Map index].[Name_15]) Like "*" & [Forms]![DW_Form]![Name] & "*") OR (([Forms]![DW_Form]![Name]) Is Null))
  40. OR ((([Map index].[Name_16]) Like "*" & [Forms]![DW_Form]![Name] & "*") OR (([Forms]![DW_Form]![Name]) Is Null))
  41. OR ((([Map index].[Name_17]) Like "*" & [Forms]![DW_Form]![Name] & "*") OR (([Forms]![DW_Form]![Name]) Is Null))
  42. OR ((([Map index].[Name_18]) Like "*" & [Forms]![DW_Form]![Name] & "*") OR (([Forms]![DW_Form]![Name]) Is Null))
  43. OR ((([Map index].[Name_19]) Like "*" & [Forms]![DW_Form]![Name] & "*") OR (([Forms]![DW_Form]![Name]) Is Null))
  44. OR ((([Map index].[Name_20]) Like "*" & [Forms]![DW_Form]![Name] & "*") OR (([Forms]![DW_Form]![Name]) Is Null))
  45. )
  46. AND ((([Map index].Map_Date) = [Forms]![DW_Form]![Map_Date]) OR (([Forms]![DW_Form]![Map_Date]) Is Null))
  47. AND (
  48. ((([Map index].[Block]) Like "*" & [Forms]![DW_Form]![Block] & "*") OR (([Forms]![DW_Form]![Block]) Is Null))
  49. OR ((([Map index].[Block_2]) Like "*" & [Forms]![DW_Form]![Block] & "*") OR (([Forms]![DW_Form]![Block]) Is Null))
  50. OR ((([Map index].[Block_3]) Like "*" & [Forms]![DW_Form]![Block] & "*") OR (([Forms]![DW_Form]![Block]) Is Null))
  51. OR ((([Map index].[Block_4]) Like "*" & [Forms]![DW_Form]![Block] & "*") OR (([Forms]![DW_Form]![Block]) Is Null))
  52. OR ((([Map index].[Block_5]) Like "*" & [Forms]![DW_Form]![Block] & "*") OR (([Forms]![DW_Form]![Block]) Is Null))
  53. OR ((([Map index].[Block_6]) Like "*" & [Forms]![DW_Form]![Block] & "*") OR (([Forms]![DW_Form]![Block]) Is Null))
  54. )
  55. AND (
  56. ((([Map index].[Lot]) Like "*" & [Forms]![DW_Form]![Lot] & "*") OR (([Forms]![DW_Form]![Lot]) Is Null))
  57. OR ((([Map index].[Lot_2]) Like "*" & [Forms]![DW_Form]![Lot] & "*") OR (([Forms]![DW_Form]![Lot]) Is Null))
  58. OR ((([Map index].[Lot_3]) Like "*" & [Forms]![DW_Form]![Lot] & "*") OR (([Forms]![DW_Form]![Lot]) Is Null))
  59. OR ((([Map index].[Lot_4]) Like "*" & [Forms]![DW_Form]![Lot] & "*") OR (([Forms]![DW_Form]![Lot]) Is Null))
  60. OR ((([Map index].[Lot_5]) Like "*" & [Forms]![DW_Form]![Lot] & "*") OR (([Forms]![DW_Form]![Lot]) Is Null))
  61. OR ((([Map index].[Lot_6]) Like "*" & [Forms]![DW_Form]![Lot] & "*") OR (([Forms]![DW_Form]![Lot]) Is Null))
  62. OR ((([Map index].[Lot_(Block_2)]) Like "*" & [Forms]![DW_Form]![Lot] & "*") OR (([Forms]![DW_Form]![Lot]) Is Null))
  63. OR ((([Map index].[Lot_2_(Block_2)]) Like "*" & [Forms]![DW_Form]![Lot] & "*") OR (([Forms]![DW_Form]![Lot]) Is Null))
  64. OR ((([Map index].[Lot_3_(Block_2)]) Like "*" & [Forms]![DW_Form]![Lot] & "*") OR (([Forms]![DW_Form]![Lot]) Is Null))
  65. OR ((([Map index].[Lot_4_(Block_2)]) Like "*" & [Forms]![DW_Form]![Lot] & "*") OR (([Forms]![DW_Form]![Lot]) Is Null))
  66. OR ((([Map index].[Lot_5_(Block_2)]) Like "*" & [Forms]![DW_Form]![Lot] & "*") OR (([Forms]![DW_Form]![Lot]) Is Null))
  67. OR ((([Map index].[Lot_6_(Block_2)]) Like "*" & [Forms]![DW_Form]![Lot] & "*") OR (([Forms]![DW_Form]![Lot]) Is Null))
  68. )
  69. ORDER BY [Map index].[Street];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement