Hi All,
I have a table, tblEvents, which I use to store information about a meeting, training session or field trip, including the [StartDate]. I also have a table, tblEventDays, which I use to store the [DayNumber] 1, 2, 3... At the moment I have to enter the day numbers in the subform frmEventDays manually, but I would like to add button controls to increase/decrease the number of days for each event (i.e. add a new record where [DayNumber] is incremented by 1, and delete the last record if I have added too many day records).
I have added button controls to my EventDays subform and managed to use the macro builder to select and duplicate the last [DayNumber] record, but cannot figure out how to increase each successive [DayNumber] by 1.
I am not familiar with VBA code, so I couldn't really understand the answers on the similar threads in this forum. Anyone like to help me fill the blanks?
1. Add a day...
Option Compare Database
Private Sub AddDay_Click()
?
End Sub
2. Remove a day...
Option Compare Database
Private Sub RemoveLastDay_Click()
?
End Sub
Regards,
Mitch
P.S. I don't really have any access buddies, so if you could also recommend a good starting point for learning VBA, that would also be greatly appreciated.