John-
I did put code in AfterUpdate event. It didn't show the subform, finally I put a command button to achieve. Thanks a lot.
Best Regards,
Kevin
在 "John Viescas JohnV@msn.com [MS_Access_Professionals]" <MS_Access_Professionals@yahoogroups.com>,2015年10月31日 下午6:36写道:
Kevin-
That code runs only when you move to a different row in your record source. If you want to reveal the subform after you've entered something in GroupBookingID, then you need to use the AfterUpdate event of that control.John Viescas, AuthorMicrosoft Access 2010 Inside OutMicrosoft Access 2007 Inside OutMicrosoft Access 2003 Inside OutBuilding Microsoft Access ApplicationsSQL Queries for Mere Mortals(Paris, France)
On Oct 31, 2015, at 10:10 AM, 'zhaoliqingoffice@163.com' zhaoliqingoffice@163.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:Dear All,I use use "visible" to show and hide a subform, after input some data, the sub form still didn't show. Please help.Private Sub Form_Current()On Error GoTo ErrHandleIf IsNull(Me.GroupBookingID) Then
Forms!frmGroupBooking!subPart.Visible = False
ElseForms!frmGroupBooking!subPart.Visible = True
End If
ErrExit:
Exit Sub
ErrHandle:
Resume ErrExitEnd SubBest Regards,Kevin
Regards,Kevin ZhaoDate: 2015-10-31 16:20Subject: [MS_AccessPros] Subform didn't showDear All,I use use "visible" to show and hide a subform, after input some data, the sub form still didn't show. Please help.Private Sub Form_Current()On Error GoTo ErrHandleIf IsNull(Me.GroupBookingID) Then
Forms!frmGroupBooking!subPart.Visible = True
ElseForms!frmGroupBooking!subPart.Visible = False
End If
ErrExit:
Exit Sub
ErrHandle:
Resume ErrExitEnd SubBest Regards,Kevin
__._,_.___
Posted by: zhaoliqingoffice <zhaoliqingoffice@163.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (4) |
.
__,_._,___
Tidak ada komentar:
Posting Komentar