Selasa, 06 November 2012

[MS_AccessPros] DoCmd.OpenForm and then hide buttons on that form

 

I inadvertently posted midway so please ignore the last post.

I want to open a form and hide certain buttons etc. Part of this is that I'm opening it Modally and do not want to have the user go a different trail by using the buttons. I did not have the Refresh initially and therefore added it. Still not working.

Thanks!
Connie

'Open Search_HomeInfo form with current listings, hiding buttons and making modal
DoCmd.OpenForm "Search_HomeInfo"
Forms!Search_HomeInfo.btnChange.Visible = False
Forms!Search_HomeInfo.btnTracking.Visible = False
Forms!Search_HomeInfo.Command125.Visible = False
Forms!Search_HomeInfo.cboAddress.Visible = False
Forms!Search_HomeInfo.cboParcelN.Visible = False
Forms!Search_HomeInfo.Refresh
Forms!Search_HomeInfo.Modal = True

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)
Recent Activity:
.

__,_._,___

Tidak ada komentar:

Posting Komentar