P
Pogas
Hi I am a newbie.I have to make a query from two tables
tblPEAT
--------
ID
SiteCode
C1
C2
C3
C4
C5
C6
tblSites
---------
SiteCode
SiteName
I want to write a VBA code that will
1.Counts the all fields ie (C1,C2,C3,C4 etc) where values
are not null for a particulat site code
2.sums all fields (C1,C2,C3,C4 etc) for values >1 for a
particular site code
Any help will be very much appreciated
Thanks
tblPEAT
--------
ID
SiteCode
C1
C2
C3
C4
C5
C6
tblSites
---------
SiteCode
SiteName
I want to write a VBA code that will
1.Counts the all fields ie (C1,C2,C3,C4 etc) where values
are not null for a particulat site code
2.sums all fields (C1,C2,C3,C4 etc) for values >1 for a
particular site code
Any help will be very much appreciated
Thanks