B
Bonnie A
Hi everyone! Using A02 on XP. I have a table with multiple records for 1-4
quarters. I have my first query (Query01) that pulls by [GP] (contract
number) and [BillDate]. Usually there are 4 records (one for each quarter).
Sometimes though, there are only 1, 2 or 3 (never zero or there is just no
data). I have to open Query01 in design view to change the GP and BillDate
criteria. I can't use parameter inquiry because Query02 is a crosstab and
doesn't like parameters.
Query01 pulls the data I need. Query02 summarizes the data (adds the fees
for each quarter and lists the fees by quarter) and Query03 appends the data
to a FeesTable (I concatenate the quarterly totals so I can list the
individual amounts that make up the total due).
I tried this:
Pieces: "Cycle fee amounts: " & IIf(([Qtr 1]) Is Null,0,[Qtr 1]) & "; " &
IIf(([Qtr 2]) Is Null,0,[Qtr 2]) & "; " & IIf(([Qtr 3]) Is Null,0,[Qtr 3]) &
"; " & IIf(([Qtr 4]) Is Null,0,[Qtr 4])
But, because this one only has data in [Qtr 4], I get the error: "Microsoft
Jet DB Engine does not recognize '[Qtr 1]' as a valid field name or
expression."
How can I allow for Qtrs that may not exist? Can I? I would appreciate any
help or advice you can provide. Thank you in advance for your time!
quarters. I have my first query (Query01) that pulls by [GP] (contract
number) and [BillDate]. Usually there are 4 records (one for each quarter).
Sometimes though, there are only 1, 2 or 3 (never zero or there is just no
data). I have to open Query01 in design view to change the GP and BillDate
criteria. I can't use parameter inquiry because Query02 is a crosstab and
doesn't like parameters.
Query01 pulls the data I need. Query02 summarizes the data (adds the fees
for each quarter and lists the fees by quarter) and Query03 appends the data
to a FeesTable (I concatenate the quarterly totals so I can list the
individual amounts that make up the total due).
I tried this:
Pieces: "Cycle fee amounts: " & IIf(([Qtr 1]) Is Null,0,[Qtr 1]) & "; " &
IIf(([Qtr 2]) Is Null,0,[Qtr 2]) & "; " & IIf(([Qtr 3]) Is Null,0,[Qtr 3]) &
"; " & IIf(([Qtr 4]) Is Null,0,[Qtr 4])
But, because this one only has data in [Qtr 4], I get the error: "Microsoft
Jet DB Engine does not recognize '[Qtr 1]' as a valid field name or
expression."
How can I allow for Qtrs that may not exist? Can I? I would appreciate any
help or advice you can provide. Thank you in advance for your time!