ClaraBarton
Registered User.
- Local time
- , 20:28
- Joined
- Oct 14, 2019
- Messages
- 574
To keep from dragging things down I have a default of choosing only the current year transactions.
- If I choose Current year, it works
- If I choose All, it works
- If I choose Current year after choosing all, it works
- I cannot choose All after choosing current year. It just keeps returning current year even if I click on a new account. It stays current year.
-
Code:
Private Sub TransactionBtn_Click() Dim intDate As Integer intDate = Me!frameLimit Select Case intDate Case 1 'Current Year DoCmd.OpenForm "frmRegister", _ WhereCondition:="Year([CkDate]) = " & Year(Date) Case 2 'All Transactions DoCmd.OpenForm "frmRegister" End Select 'Change register if click on an different account If IsLoaded("frmRegister") Then Forms!frmRegister.Requery End If End Sub