gusbrunston
Programmer
Hi:
Thanks for your attention to this post.
I am not familiar with the use of
. Perhaps I need it or if you can help with the VBA for the following:
I use a form to post voided checks to a check register (checks mis-printed, etc.).
The form works very well, but it requires the user to input the original amount of the check. If an there is an input error, the check register is incorrect by the amount of the error.
I would like the form to find the payment amount of the original check and populate the control bound to the voided check amount.
The data source for the form is a query of tblOne.
The original check is a record in tblTwo.
In pigeon basic, this is what I need to do:
I've tried to make this as clear as possible. Let me know if additonal info is required.
Thanks greatly, Gus Brunston
An old PICKer, using Access2000.
Thanks for your attention to this post.
I am not familiar with the use of
Code:
DLookup
I use a form to post voided checks to a check register (checks mis-printed, etc.).
The form works very well, but it requires the user to input the original amount of the check. If an there is an input error, the check register is incorrect by the amount of the error.
I would like the form to find the payment amount of the original check and populate the control bound to the voided check amount.
The data source for the form is a query of tblOne.
The original check is a record in tblTwo.
In pigeon basic, this is what I need to do:
Code:
Private Sub txtVoidCheckNo_AfterUpdate()
'Find "VoidCheckNo" in tblTwo
'(where it's name is "CheckNumber"
Code:
How?
Code:
'Populate txtDepAmt with the PaymentAmount
'of the original check found above.
Me.txtDepAmt = PaymentAmount of original check
End Sub
I've tried to make this as clear as possible. Let me know if additonal info is required.
Thanks greatly, Gus Brunston
![[glasses] [glasses] [glasses]](/data/assets/smilies/glasses.gif)