mlawrenson
IS-IT--Management
Hello. I would like some help on a annoying running total problem please.
I have a main form that contains work orders, a sub form that lists order lines. I would like to sum the value of timespent on each order line. But only if the chargeable box is ticked.
SO I created a "group by" sum query to sum the timespent "where chargeable ='-1', which works fine.
I then created a dlookup control on the footer of the form which looks up values in the above "group by" sum query based on the id, this works fine but my problem is, it only works if there is an entry for that particualar id. If there is no entry I get a #Error.
Do does anyone know a way round this, or maybe a better way of doing this?
Thanks in advance.
I have a main form that contains work orders, a sub form that lists order lines. I would like to sum the value of timespent on each order line. But only if the chargeable box is ticked.
SO I created a "group by" sum query to sum the timespent "where chargeable ='-1', which works fine.
I then created a dlookup control on the footer of the form which looks up values in the above "group by" sum query based on the id, this works fine but my problem is, it only works if there is an entry for that particualar id. If there is no entry I get a #Error.
Do does anyone know a way round this, or maybe a better way of doing this?
Thanks in advance.