O
octet
Iam trying to run this code but i get an error after CASE 1 and then after
case 2 i am new to programing can anyone help with this?
Thanks Octet
Option Compare Database
Option Explicit
Private Sub grpEmployees_AfterUpdate()
Dim strSQL As String
'Open rptEmployeeList or rptemployeesByDept
' base on critreia enterd int form by user
strSQL = "Teminated =" & chkTerm
Select Case grpEmployees
Case 1
DoCmd.OpenReport "rptEmployeesList", acViewPreview, , strSQL
Case 2
DoCmd.OpenReport "rptEmployeesByDept", acViewPreview, , strSQL
End Select
grpEmployees = Null
End Sub
case 2 i am new to programing can anyone help with this?
Thanks Octet
Option Compare Database
Option Explicit
Private Sub grpEmployees_AfterUpdate()
Dim strSQL As String
'Open rptEmployeeList or rptemployeesByDept
' base on critreia enterd int form by user
strSQL = "Teminated =" & chkTerm
Select Case grpEmployees
Case 1
DoCmd.OpenReport "rptEmployeesList", acViewPreview, , strSQL
Case 2
DoCmd.OpenReport "rptEmployeesByDept", acViewPreview, , strSQL
End Select
grpEmployees = Null
End Sub