asteropi
Member
- Local time
- Today, 18:03
- Joined
- Jun 2, 2024
- Messages
- 136
Maybe if you attach a sample file, as always, it will be easier to help you.
Maybe if you attach a sample file, as always, it will be easier to help you.
I changed it to LotNumberhere test this.
BTW your LotNumber on the form has LotNumver as it's Name, so i used LotNumver in the code.
Edit the PurchaseDate for the code to get triggered.
edit the Form and click on LotNumber on Property->Data->Locked, set it to No.But also I cancelled the Locked function because if
I already did that is what I'm saying.see the db i attached and change it there. also if you change it to LotNumber, change also the LotNumver on the code.
did this also.edit the Form and click on LotNumber on Property->Data->Locked, set it to No.
in the code you put Date, not DateofPurchaseis not this what you need?
download the db i posted and see it your self.(if you choose a future date it will work) and you will see it goes to 01
I did and checkd it on your dbdownload the db i posted and see it your self.
that is not what i uploaded, my LotNumber is based on Today's date and Not on PurchaseDate.I did and checkd it on your db
I know. I changed itthat is not what i uploaded, my LotNumber is based on Today's date and Not on PurchaseDate.
wow you fixed it!!Try this update.
The fact remains that the database is quite poorly made, suffice it to say that in the LotNumberF mask by not inserting the date or inserting a date after today's the record is still saved, etc...
how will you deal if your Last LotNumber is from your customer LotNumber (manual entry)?wow you fixed it!!
oh I didn't think about that.how will you deal if your Last LotNumber is from your customer LotNumber (manual entry)?
then you enter new record it will find this LotNumber (as the last record) and try to Add 1 to it?
worst the Last 2 characters are not Number, so CInt() will fail to this and you will get runtime error.
wow this works perfectly!you also try this.