I am running some queries on form load to get some summary info on a database.
My query is summing records based on a priority field value (1, 2, or 3) and may find none. When there are no records that meet the criteria for a given priority the line that updates the textbox with the value errs out (below).
here is my code for the textbox:
I tried an IF db.EOF, but that doesn't work.
Thanks for any ideas.
My query is summing records based on a priority field value (1, 2, or 3) and may find none. When there are no records that meet the criteria for a given priority the line that updates the textbox with the value errs out (below).
here is my code for the textbox:
Code:
Me.txt_low_cnt = Nz((db.OpenRecordset(strSQL)(0)) & " ", "0")
Thanks for any ideas.
Comment