I have a table and one of its fields( account heads) is populated through a form which has a combobox from which a selection is made.
I have a select query (No:1)working on a parameter input by the user. (Which account head?). Whenthe query is run for a particular account head and if the account head has not been selected in the form combobox so far, then obviously the field in the table does not have this account head and therefore the query does not return any records.
My problem starts here. I have a query(No.2)which sums the account head field in query No.1 and becomes the underlying query for a report.In situations of null as explained in para 2, query does not function and error messages appear in the report.
I understand there is this Nz function or similar but is this useable in this situation.If so, how? Please help!
regards
nvk
I have a select query (No:1)working on a parameter input by the user. (Which account head?). Whenthe query is run for a particular account head and if the account head has not been selected in the form combobox so far, then obviously the field in the table does not have this account head and therefore the query does not return any records.
My problem starts here. I have a query(No.2)which sums the account head field in query No.1 and becomes the underlying query for a report.In situations of null as explained in para 2, query does not function and error messages appear in the report.
I understand there is this Nz function or similar but is this useable in this situation.If so, how? Please help!
regards
nvk