Hi guys, I'm a newbie to access 2007, I've made a few low priority databases and can link tables but I'm crap when it comes to the coding aspect so I need your help here to help me learn as I use this wonderful application builder.
I have a tblFees table which contains 3 columns: FeeID, FeeDescription, and Amount. I also have a second table called tblPayments which has columns PaymentID, RegistrationNumber, FeeID, Balance, and PaymentDate.
I have created a frmFeeEntry form and used that to feed in all the various types of fees and amounts corresponding to every fee that I will be taking for my services, and I also have a frmPayments form which will feed into my tblPayments table all the details of each payment made by my clients.
On the frmPayments form I have a combo box which is displaying the contents of the tblFees table. I also created an unbound text box right below this combo box and set it to invincible. Ideally, I want a user to select a fee type from the combo box and the unbound text box becomes visible and displays the amount for that fee. I have tried to achieve this on my own by trying out some coding but I run into problems. Here is my code:
Private Sub PaymentType_AfterUpdate ()
If Me.PaymentType.Selected = -1 Then
Me.Amount.Visible = True
Else
Me.Amount.Visible = False
End If
End Sub.
The major problems I'm facing is not only to get the text box visible after a selection is made from the combo box, but also to get the text box to display the amount that goes with the selection made.
Any help with this will be greatly appreciated.
Thanks