Sorry about that. Let me try to explain since I can duplicate this on any
form with a subform.
Trying to obtain a Bank Deposit total based upon a cash amount and the total
of personal checks received. The form contains box for todays date, cash
amount received, and bank deposit. It also contains a subform in datasheet
view based upon another form. This other form contains a description,
amount, and a subtotal in the footer.
Simply put when you enter the cash amount and all ther personal checks I
need a total in the Bank Deposit field.
This works fine 99% of the time.
Enter the Cash - OK.
Now in subform. Enter descript, tab to amount, enter amount, tab to next
descript, exit subform using Ctl-Tab - all OK! Bank deposit is correct amount.
Code(only code in this test database) from subform exit:
[BankDeposit] = Text16
Now for the real problem. Say an amount in the subform is $10.00 and you
want to change it to $20.00 quickly. Using the mouse, you highlight the 1
and replace it with a 2. Now without hitting enter or tab exit the subform
using Ctl-Tab and the Bank Deposit remains unchanged.
For a real kicker, I put a breakpoint at the one and online of code(above).
Using the same method to change the amount and exit the subform I stepped
into the line of code and now the Bank Deposit amount is correct!
I've yet to find out how to correct this. Thanks for any help.
Ken Snell said:
You give us absolutely no information about what the code is or does, nor
what the meaning of "does not work" is, so what you describe can be answered
generically by "it's probably a timing issue" -- meaning that something that
the code initiates is not "completed" by the time you want to use the
results of it.