Rabu, 23 Desember 2015

[MS_AccessPros] Please help with VBA code

 

Access 2010. I use the following code to open a form from another form

Private Sub PayFor_AfterUpdate()
 
 Select Case Me.PayFor
        Case "Liquor"
            ' Open related form
            DoCmd.OpenForm "Liquor"

This works fine but always opens the second form in ADD mode.

How can I add instruction to above code to open a form in either ADD or Edit mode?


__._,_.___

Posted by: kenaf42@yahoo.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

.

__,_._,___

Tidak ada komentar:

Posting Komentar