Rob,
Yes, those re fields in my query...
Here is the sql to the query..
SELECT tblcheckingaccount.ID, tblcheckingaccount.datereconciled,
tblcheckingaccount.Reconciled, tblcheckingaccount.accountid,
tblcheckingaccount.accounttype, tblcheckingaccount.Payee,
tblcheckingaccount.Date, tblcheckingaccount.Debit, tblcheckingaccount.Credit,
CCur(Nz([Credit],0)+Nz([Debit],0)) AS Debit_Credit,
tblcheckingaccount.Balance, tblcheckingaccount.Description,
tblcheckingaccount.Notes, tblcheckingaccount.Paymentcat,
tblcheckingaccount.Reference
FROM tblcheckingaccount
ORDER BY tblcheckingaccount.ID;
Thanks,
Brook
Rob Oldfield said:
What are me.debit and me.credit? Fields on the underlying query? If so,
what does that query look like (i.e. post the sql)?
Rob,
Thanks for the post. Here is what I currently have, the problem I'm
having
is that when I click the reconciled button for a Debit, the debit balance
works fine but then clears the anything (includeing the default value of
$0.00) from the txtcredit balance.
I cannot figure it out:
So if I reconcile a Credit Item, the balance will show up in the
txtCredit
but if I then reconcile a Debit Item, the Credit balance disappears and
the
Debit balance shows up properly, and if I click another debit, it totals
properly.
I have been racking my brain with this...
Any ideas?
All are set to currency, 2 decimals, default value of 0
Begin Code:
Private Sub Reconciled_AfterUpdate()
If Me.Reconciled = True Then
Me.txtDebit = Me.txtDebit + Me.Debit
Else
If Me.Reconciled = False Then
Me.txtDebit = Me.txtDebit - Me.Debit
End If
End If
If Me.Reconciled = True Then
Me.txtCredit = Me.txtCredit + Me.Credit
Else
If Me.Reconciled = False Then
Me.txtCredit = Me.txtCredit - Me.Credit
End If
End Code
:
Basically, it'll just be code in the after update event of the checkbox
along the lines of...
if me.reconciled then
'code to get new debit/credit info
endif
If you want any more information than that, then you'd need to specify
exactly where those new credit/debit figures are coming from.
Hi all,
I have a checkingacctform I use for my business with the following
relevent
fields:
Debit (txtbox)
Crebit (txtbox)
Reconciled (yes/no checkbox)
I would like to have a field on my form for both Debit and credit so
that
if I l click the reconciled yes/no box the Debit and/or Credit total
will
update with a new balance?
Does anyone have any ideas?
thanks,
Brook