I have a 97-2003 version .mdb that works fine in the older Access, however when run or even converted into Access 2007 it just doesn't fully work and I have no idea why, rebuilding would be effectively the same code and process, so what am I missing? The users have been upgraded to Access 2007, thus the need.
Please scan this code quickly and give your best attempt at pointing me in the right direction: It basically is a button to filter on the form, but only works 1 time, then won't release the stored variable that is filtering for the record. Where is the degradation in the conversion?
Private Sub FindActivityRcd_
On Error GoTo Err_FindActivityRcd
stDocName = "Find Activity"
DoCmd.RunMacro stDocName
Call txtYear_AfterUpdate
Exit_FindActivityRc
Exit Sub
Err_FindActivityRcd
MsgBox Err.Description
Resume Exit_FindActivityRc
End Sub
Private Sub AddNewRcd_Click(
On Error GoTo Err_AddNewRcd_
DoCmd.GoToRecord , , acNewRec
Exit_AddNewRcd_
Exit Sub
Err_AddNewRcd_
MsgBox Err.Description
Resume Exit_AddNewRcd_
End Sub
Private Sub txtYear_AfterUpdate
Dim myMonth As Integer
myMonth = Month(Now())
'myMonth = 12
If Me.txtYear.Column(
Select Case myMonth
Case 1
Me.January_Budget.
Me.February_
Me.March_Budget.
Me.April_Budget.
Me.May_Budget.
Me.June_Budget.
Me.July_Budget.
Me.August_Budget.
Me.September_
Me.October_Budget.
Me.November_
Me.December_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Q1CurrEst.
Me.Q1PrevEst.
Me.Q2CurrEst.
Me.Q2PrevEst.
Me.Q3CurrEst.
Me.Q3PrevEst.
Me.Q4CurrEst.
Me.Q4PrevEst.
Me.Q1CurrEst.
Me.Q2CurrEst.
Me.Q3CurrEst.
Me.Q4CurrEst.
Me.Q1PrevEst.
Me.Q2PrevEst.
Me.Q3PrevEst.
Me.Q4PrevEst.
Case 2
Me.January_Budget.
Me.February_
Me.March_Budget.
Me.April_Budget.
Me.May_Budget.
Me.June_Budget.
Me.July_Budget.
Me.August_Budget.
Me.September_
Me.October_Budget.
Me.November_
Me.December_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Q1CurrEst.
Me.Q1PrevEst.
Me.Q2CurrEst.
Me.Q2PrevEst.
Me.Q3CurrEst.
Me.Q3PrevEst.
Me.Q4CurrEst.
Me.Q4PrevEst.
Me.Q1CurrEst.
Me.Q2CurrEst.
Me.Q3CurrEst.
Me.Q4CurrEst.
Me.Q1PrevEst.
Me.Q2PrevEst.
Me.Q3PrevEst.
Me.Q4PrevEst.
Case 3
Me.January_Budget.
Me.February_
Me.March_Budget.
Me.April_Budget.
Me.May_Budget.
Me.June_Budget.
Me.July_Budget.
Me.August_Budget.
Me.September_
Me.October_Budget.
Me.November_
Me.December_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Q1CurrEst.
Me.Q1PrevEst.
Me.Q2CurrEst.
Me.Q2PrevEst.
Me.Q3CurrEst.
Me.Q3PrevEst.
Me.Q4CurrEst.
Me.Q4PrevEst.
Me.Q1CurrEst.
Me.Q2CurrEst.
Me.Q3CurrEst.
Me.Q4CurrEst.
Me.Q1PrevEst.
Me.Q2PrevEst.
Me.Q3PrevEst.
Me.Q4PrevEst.
Case 4
Me.January_Budget.
Me.February_
Me.March_Budget.
Me.April_Budget.
Me.May_Budget.
Me.June_Budget.
Me.July_Budget.
Me.August_Budget.
Me.September_
Me.October_Budget.
Me.November_
Me.December_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Q1CurrEst.
Me.Q1PrevEst.
Me.Q2CurrEst.
Me.Q2PrevEst.
Me.Q3CurrEst.
Me.Q3PrevEst.
Me.Q4CurrEst.
Me.Q4PrevEst.
Me.Q1CurrEst.
Me.Q2CurrEst.
Me.Q3CurrEst.
Me.Q4CurrEst.
Me.Q1PrevEst.
Me.Q2PrevEst.
Me.Q3PrevEst.
Me.Q4PrevEst.
Case 5
Me.January_Budget.
Me.February_
Me.March_Budget.
Me.April_Budget.
Me.May_Budget.
Me.June_Budget.
Me.July_Budget.
Me.August_Budget.
Me.September_
Me.October_Budget.
Me.November_
Me.December_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Me.Prev_Month_
Tecnologia, programação e muito Visual FoxPro.