Results 1 to 2 of 2
  1. #1
    xwnoob is offline Advanced Beginner
    Windows Vista Access 2000
    Join Date
    Nov 2011
    Posts
    76

    How do i add a new statement to this IF argument?

    Here is my code, please ignore the first line of the code( the btnUndocommit)



    Private Sub Form_Current()

    Me!btnUndoCommit.Enabled = False
    If Me.OpenArgs = "Edit" Then Me.Label49.Caption = "something"

    End Sub


    I want to add in more....statements. For example:

    If Me.OpenArgs = "Edit" Then Me.Label49.Caption = "something",Me.Label16.Caption = "sellprice"


    but i tried this method and it doesnt work. What is the syntax to add more statements in order to change the captions of other labels?

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 11-21-2011, 04:38 PM
  2. Invalid argument
    By wharting in forum Import/Export Data
    Replies: 4
    Last Post: 10-19-2011, 11:49 PM
  3. Pass argument to a report from VBA?
    By degras in forum Reports
    Replies: 2
    Last Post: 01-25-2011, 11:13 AM
  4. Replies: 2
    Last Post: 08-05-2010, 08:16 AM
  5. Invalid Argument Error
    By koper in forum Access
    Replies: 2
    Last Post: 06-14-2010, 11:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums