Hi, I started working on this project about a month ago, with no knowledge of access. I know a lot more now than I did. But I am stuck in a Phase of it and I need help from you good people.
I have a Drop_Envelopes Table with 5 fields:Purpose: We drop envelopes in a safe. This records which envelope no. had how much cash or checks.
- [ID] = AutoNumber (Using it just because I should have a primary KEY) Dont really need it
- [DATEVAL] = Date For that Day
- [Envelope_No] = NUMBER (Envelope Drops in Safe)
- [CASH] = Currency (Amount of cash in the Envelope)
- [Checks] = Currency (Amounty of checks in the Envelops)
Problem (FOR NOW): The Envelopes we have Cycle from #1 - # 80
In a day's time we can go through 6 or 7 envelopes, (The numbering is in series).
I want my form to Auto Generate my envelope No. and cycle through 1-80 (could be the same day or the next). The form Openes when cliked on button on a diffrent form and filters with That Form's date.
I tried using Dlast("[Envelope_No]","[Drop_Envelopes]") +1 in the default value of the field in the form and also in "Before Update" Event of the field.
I am using a split form (I need the datasheet vew so I can see what all I have entered for the day)
When I start entering a new record, the datasheet view generates another row with DLAST working. For example: If I am working on envelope NO.1 and press Enter. It auto Populates #2 on the next row, but As soon as I start working on #2 , the next row(third) becomes #2. because the last record it recognizes is #1 and #2 hasnt been registered yet. So Its not going to work for me.
As far as looping, ( I havent gotten to that part)
I can really use some help. Please reply with any idea you have. Any help will be greayly appreciated.
Thanks