Deirdre Marie
Access in Excess
- Local time
- Today, 10:41
- Joined
- Sep 17, 2001
- Messages
- 34
Greetings~
I have created a database which tracks the amount of pheresis donations of a patient.
I have a text box to record the date of the last donation [LastDonation].
I have a text box to record the number of donations [NumberofDonations].
I also have several text boxes to record the dates of milestone donations such as 25, 50, 100 etc
[Donation25], [Donation50] etc..
What I would LIKE to do, and have been unable to correctly do, is the following:
When the [NumberofDonations] reaches a milestone mark (25, 50, 100, etc) I would like the [LastDonation] field to be automatically entered in the appropriate milestone datebox [Donation25], [Donation50] etc.
My simple event procedure I entered does not seem to be doing this for me. This is how I have it written:
Private Sub Donation25_AfterUpdate()
If Me.NumberofDonations = "25" Then Me.Donation25 = Me.LastDonation
End Sub
Further, I would like for the [Donation25] information to remain on the form even if the [NumberofDonations] exceeds 25.
Your assistance is most appreciated. Thank you in advance for your time.
:: waves to Alexandre and whispers, "I'm learning!" ::
I have created a database which tracks the amount of pheresis donations of a patient.
I have a text box to record the date of the last donation [LastDonation].
I have a text box to record the number of donations [NumberofDonations].
I also have several text boxes to record the dates of milestone donations such as 25, 50, 100 etc
[Donation25], [Donation50] etc..
What I would LIKE to do, and have been unable to correctly do, is the following:
When the [NumberofDonations] reaches a milestone mark (25, 50, 100, etc) I would like the [LastDonation] field to be automatically entered in the appropriate milestone datebox [Donation25], [Donation50] etc.
My simple event procedure I entered does not seem to be doing this for me. This is how I have it written:
Private Sub Donation25_AfterUpdate()
If Me.NumberofDonations = "25" Then Me.Donation25 = Me.LastDonation
End Sub
Further, I would like for the [Donation25] information to remain on the form even if the [NumberofDonations] exceeds 25.
Your assistance is most appreciated. Thank you in advance for your time.
:: waves to Alexandre and whispers, "I'm learning!" ::