Hour6
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 2 articles for 0.302 sec
As has been pointed out, you really need to normalize this data. One workaround is to write a custom VBA function and use it in your query. You could also try something like the following untested expression. Although the length of the expression may get close to the allowable length for an expression in the query grid. IIF(Hour1 is Null and Hour2 is Null and ... and Hour12 is Null, Null     

Group: microsoft.public.access.queries · Group Profile · Search for Hour6 in microsoft.public.access.queries
Author: John Spencer
Date: Aug 15, 2006 04:55

First, yes, you're right.... your table structure is not normalized, and you're seeing just one of many problems of dealing with unnormalized data structure -- namely, the ridiculously complex expression that you need to use to get an average. What you need is a child table with four fields in it: tblHourTable HourID (primary key -- autonumber is fine) LinkingField
Show full article (2.46Kb)
    

Group: microsoft.public.access.queries · Group Profile · Search for Hour6 in microsoft.public.access.queries
Author: Ken Snell (MVP)
Date: Aug 14, 2006 20:26

Show full article (2.23Kb)