Locked checkbox with group by query (1 Viewer)

russiver

Registered User.
Local time
Today, 09:03
Joined
Dec 19, 2003
Messages
41
I have an accounts database that stores bank transactions in one table with a 'one to many' (transID to FKtransID) relationship to a second items table that
stores the items of that transaction.

The transactions table includes a yes/no field for checking off when a bank statement is received.

Ideally, I would like to create a query or a form based on a query that lists all transactions with a sum of the cash amount for all the items within a transaction - grouped by FktransID.

However, the group by statement in the query locks the statement checkbox so transactions cannot be ticked off.

Can anyone suggest a workaround?
 

russiver

Registered User.
Local time
Today, 09:03
Joined
Dec 19, 2003
Messages
41
Thanks. Will give that a try.
 

June7

AWF VIP
Local time
Today, 00:03
Joined
Mar 9, 2014
Messages
5,472
Should interact with form, not table or query. Use form/subform arrangement. Use Sum function to show sum of items in subform. If subform is in DataSheet view, use Totals button on ribbon to show a Totals row.

Domain Aggregate functions can cause slow performance in queries and even in textbox calculations.
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 04:03
Joined
Feb 19, 2002
Messages
43,275
I'm confused about what you are trying to do. If you are summing the details, you can't check individual items.

Use a main form for the parent table and a subform for the details table. That lets you show the sum in the footer of the detail form as well as allowing you to check the received flag on the parent table.

The two things you are trying to do are incompatible in one query.
 

russiver

Registered User.
Local time
Today, 09:03
Joined
Dec 19, 2003
Messages
41
Thanks for all the replies. Although a little slow, using DSum() for the sum gives me the check list I was looking for.
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 04:03
Joined
Feb 19, 2002
Messages
43,275
You don't need to use DSum() if you are using a form.
 

Users who are viewing this thread

Top Bottom