Minggu, 23 November 2014

Re: [MS_AccessPros] Need help on opening FORM

 

Dear kenaf42 (name?):


If you want to open the same form for any of the three values, use:

    If Me.What = "Vehicle" Or Me.What = "Computer" Or Me.What = "Printer" Then


John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
SQL Queries for Mere Mortals 
(Paris, France)




On Nov 23, 2014, at 8:17 PM, kenaf42@yahoo.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:

In Access 07, I am using the following procedure to open second FORM when user enter certain text in a field of the first FORM.

Private Sub What_AfterUpdate()

    ' If user entered "Vehicle",

    If Me.What = "Vehicle" Then

        ' Open related form

        DoCmd.OpenForm "PopUpformService"

    End If

 

Question: How could I have multiple entries in Me.What=.

Example:    If Me.What = "Vehicle" or "Computer" or "Printer" Then

                  DoCmd.OpenForm "PopUpformService"



__._,_.___

Posted by: John Viescas <johnv@msn.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)

.

__,_._,___

Tidak ada komentar:

Posting Komentar