I have three tables in a database to manage members: Members, Promotions, Ranks
When ever a member earns a promotion to a new rank I want to add new records to the Promotions table with information from the Ranks table, at the same time I want to update the members's records with information in the Ranks table.
When a promotion is added it is linked to a member in the Members table. The Promotion table will include the member ID, the date of the promotion, and the fee for the promotion (the fee comes from the Rank table. The member record in the Members table needs to have the Title and Rank fields updated to the correct values from the Ranks table.
At this time I have a Promotion Detail form where I select the member with a combo box then I use another combo box to select the rank and auto complete the remaining fields on the form with data in the Ranks table. The data is presently saved to the Promotions table. This is done with VBA to populate the fields.
Private Sub Rank_AfterUpdate()
Description = Rank.Column(2)
Title = Rank.Column(3)
PromotionFee = Rank.Column(4)
End Sub
I do also have two queries that find the information about promotions. The first finds the most recent promotion for each member. The second one links the first query with the PromotionsExtended query to give details just about the most recent promotion.
Is it possible to add to the VBA of the form to have it update the information in the member records and not have to create extra steps for the end users?