Thank you for your prompt reply Paul! I was able to try out a couple of things yesterday, based on your suggestion. I tried putting my macro (AC2010's macro builder seems to me to work a lot like VBA -in terms of its structure) into the Before Update event of the form as well as in the Before Update event of both controls (cboTaskChoose and btnOpenSchedule), but I have the same result as before.
Paul, you also said that you think a condition would be needed; the macro I made uses the function "IsEmpty" to evaluate whether or not the user has made a selection from the control cboTaskChoose. Is that what you meant by a condition?
Since you said that you don't use macros, I have converted examples of my macros, converted to Visual Basic (thought it would help):
Code:
Option Compare Database
'------------------------------------------------------------
' btnOpenSchedule
'
'------------------------------------------------------------
Function btnOpenSchedule()
If (IsEmpty(Forms!frmStart!cboTaskChoose)) Then
Beep
MsgBox "You need to choose a task...", vbInformation, "I'm not a mind reader!"
DoCmd.CancelEvent
DoCmd.GoToControl "Forms!frmStart!cboTaskChoose"
Else
DoCmd.RunMacro "FormORReport", , ""
End If
End Function
Option Compare Database
'------------------------------------------------------------
' FormORReport
'
'------------------------------------------------------------
Function FormORReport()
If (Forms!frmStart!cboTaskChoose = "Make A Schedule") Then
DoCmd.OpenForm "frmSchedule", acNormal, "", "", , acNormal
ElseIf (Forms!frmStart!cboTaskChoose = "Level Review Report") Then
DoCmd.OpenReport "rptLevel_Reviews", acViewReport, "", "", acNormal
ElseIf (Forms!frmStart!cboTaskChoose = "Update Levels") Then
DoCmd.OpenForm "frmLevel_Review", acNormal, "", "", acEdit, acNormal
ElseIf (Forms!frmStart!cboTaskChoose = "Add or Delete Beneficiaries") Then
DoCmd.OpenForm "frmNew_Beneficiaries", acNormal, "", "", acEdit, acNormal
ElseIf (Forms!frmStart!cboTaskChoose = "View/Print Caseload") Then
DoCmd.OpenReport "rptCaseload", acViewReport, "", "", acNormal
ElseIf (Forms!frmStart!cboTaskChoose = "View/Print Groups") Then
DoCmd.OpenReport "rptBeneficiary_Group_Lists", acViewReport, "", "", acNormal
End If
End Function
I hope this helps you help me! :-)