I am getting help from someone who works with oracle but is having trouble getting things done with access.
could anyone offer some help please?
Code:
strsqlc = "select mo,max(pcount),max(ccount)" &_
" from " & _
" (select month(Date_of_Project) as mo, year(Date_of_Project) as ye, count(Date_of_Project) as pcount, '0' as ccount" & _
" From [tbl_LuT Vorgang]" & _
" WHERE " & strwho & _
" [tbl_LuT Vorgang].Date_of_Project >= #" & Format(strcpstartdate, "mm\/dd\/yyyy") & "#" & _
" AND [tbl_LuT Vorgang].Date_of_Project <= #" & Format(strcpenddate, "mm\/dd\/yyyy") & "#" & _
" GROUP by month(Date_of_Project), year(Date_of_Project))" & _
" UNION (select month(Date_of_Contact) as mo, year(Date_of_Contact) as ye, '0' as pcount, count(Date_of_Contact) as ccount" & _
" From [tbl_LuT Vorgang]" & _
" WHERE " & strwho & _
" [tbl_LuT Vorgang].Date_of_Contact >= #" & Format(strcpstartdate, "mm\/dd\/yyyy") & "#" & _
" AND [tbl_LuT Vorgang].Date_of_Contact <= #" & Format(strcpenddate, "mm\/dd\/yyyy") & "#" & _
" GROUP by month(Date_of_Contact), year(Date_of_Contact))" & _
" GROUP by mo, ye" & _
" ORDER by mo,ye;"