C
Claire
I can't quite get the Click event procedure to work with my code.
I would like the list box lstGstNew to be clicked in after it is requeried
but I am not having any success.
Private Sub cboProgress_AfterUpdate()
On Error GoTo PROC_ERR
If IsNull(Me.cboProgress) Then Exit Sub
Dim ctl As Control
For Each ctl In Me.Controls
If ctl.Tag = "lockup" Then
ctl.Locked = False
End If
Next ctl
SetCurrProgressNum (Me.cboProgress)
SetCurrProgressID (Me.cboProgress)
Me.Requery
DoCmd.Echo False
Forms![frmContracts].subDetail.SourceObject = "subblank"
DoCmd.SetWarnings False
DoCmd.OpenQuery "qryClearDetailTempTable"
DoCmd.OpenQuery "qryFillTempDetailTable"
Me.lstGSTNew.Requery
DoCmd.GoToControl "lstGSTNew"
DoCmd.SetWarnings True
Forms![frmContracts].subDetail.SourceObject = "subDetail"
CheckClosed
DoCmd.Echo True
Exit Sub
PROC_ERR:
MsgBox "The following error occured: " & Error$
Resume Next
End Sub
This is driving me crazy!! Any help is HUGE!!
Thanks
Claire
I would like the list box lstGstNew to be clicked in after it is requeried
but I am not having any success.
Private Sub cboProgress_AfterUpdate()
On Error GoTo PROC_ERR
If IsNull(Me.cboProgress) Then Exit Sub
Dim ctl As Control
For Each ctl In Me.Controls
If ctl.Tag = "lockup" Then
ctl.Locked = False
End If
Next ctl
SetCurrProgressNum (Me.cboProgress)
SetCurrProgressID (Me.cboProgress)
Me.Requery
DoCmd.Echo False
Forms![frmContracts].subDetail.SourceObject = "subblank"
DoCmd.SetWarnings False
DoCmd.OpenQuery "qryClearDetailTempTable"
DoCmd.OpenQuery "qryFillTempDetailTable"
Me.lstGSTNew.Requery
DoCmd.GoToControl "lstGSTNew"
DoCmd.SetWarnings True
Forms![frmContracts].subDetail.SourceObject = "subDetail"
CheckClosed
DoCmd.Echo True
Exit Sub
PROC_ERR:
MsgBox "The following error occured: " & Error$
Resume Next
End Sub
This is driving me crazy!! Any help is HUGE!!
Thanks
Claire