A
Alan
I am getting a problem while trying to call the following
report query called "zel_test" in the application:
SELECT transactions.period, transactions.year,
transactions.tran_date, transactions.description,
transactions.debit_amt, transactions.credit_amt,
transactions.balance
FROM transactions, maintab
WHERE (((transactions.rserial)=(maintab.rserial)) And
((maintab.tenant)=forms!frmarrearsStatement!
txt_frm_tenant))
ORDER BY transactions.tran_date DESC;
from within a VBA program in a form
called "frmarrearsstatement" using the stament:
DoCmd.OpenQuery "zel_test", , acReadOnly
The value for "txt_frm_tenant" is assigned somewhere in
the program as
Txt_frm_tenant = mrstctx!tenant
where mrstctx is a recordset. (I have double-checked that
the value is assigned correctly!!)
The problem shows up as soon as program execution is to
generate the report on the basis of the "zel_test" query.
A message box with "Enter Parameter Value" opens asking
a value for:
"forms!frmarrearsStatement!txt_frm_tenant"
It looks as if the report query cannot read
the "txt_frm_tenant" value from the parent forms, and I
could not find any solution to it. thanks. Alan
report query called "zel_test" in the application:
SELECT transactions.period, transactions.year,
transactions.tran_date, transactions.description,
transactions.debit_amt, transactions.credit_amt,
transactions.balance
FROM transactions, maintab
WHERE (((transactions.rserial)=(maintab.rserial)) And
((maintab.tenant)=forms!frmarrearsStatement!
txt_frm_tenant))
ORDER BY transactions.tran_date DESC;
from within a VBA program in a form
called "frmarrearsstatement" using the stament:
DoCmd.OpenQuery "zel_test", , acReadOnly
The value for "txt_frm_tenant" is assigned somewhere in
the program as
Txt_frm_tenant = mrstctx!tenant
where mrstctx is a recordset. (I have double-checked that
the value is assigned correctly!!)
The problem shows up as soon as program execution is to
generate the report on the basis of the "zel_test" query.
A message box with "Enter Parameter Value" opens asking
a value for:
"forms!frmarrearsStatement!txt_frm_tenant"
It looks as if the report query cannot read
the "txt_frm_tenant" value from the parent forms, and I
could not find any solution to it. thanks. Alan