I don't use macros and couldn't make sense of that one so I converted it to VBA and this is the result:
Code:
'------------------------------------------------------------
' cboGroup_Change
'
'------------------------------------------------------------
Private Sub cboGroup_Change()
On Error GoTo cboGroup_Change_Err
Call DelayTime(1)
DoCmd.OpenForm "frmSub", acNormal, "", "", , acNormal
DoCmd.Requery "frmTable_DtSht"
DoCmd.RepaintObject acForm, "frmTable_DtSht"
DoCmd.Close acForm, "frmTable_DtSht"
' _AXL:<?xml version="1.0" encoding="UTF-16" standalone="no"?>
' <UserInterfaceMacro For="cboGroup" Event="OnChange" xmlns="http://schemas.microsoft.com/office/...11/application" xmlns:a="http://schemas.microsoft.com/office/accessservices/
' _AXL:2009/11/forms"><Statements><Action Name="RunCode"><Argument Name="FunctionName">DelayTime(1)</Argument></Action><Action Name="OpenForm"><Argument Name="FormName">frmSub</Argument></Action><Action Name="Requery"><Argument Name="ControlName">frmTable
' _AXL:_DtSht</Argument></Action><Action Name="RepaintObject"><Argument Name="ObjectType">Form</Argument><Argument Name="ObjectName">frmTable_DtSht</Argument></Action><Action Name="CloseWindow"><Argument Name="ObjectType">Form</Argument><Argument Name="Ob
' _AXL:jectName">frmTable_DtSht</Argument></Action></Statements></UserInterfaceMacro>
cboGroup_Change_Exit:
Exit Sub
cboGroup_Change_Err:
MsgBox Error$
Resume cboGroup_Change_Exit
End Sub
I get compile error on: Call DelayTime(1)
There is no function DelayTime().