Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Apr 2002
    Location
    Evansville, Indiana, USA
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Conditional Help (2007)

    I have the following IF Statement:

    If submittedyet = -1 & rejectedyet = 0 Then
    Me.txtHolder.Value = 4
    DoCmd.OpenForm "frmAddPO", , , "[PO#]=" & Me.[cmbSelectPO], acFormReadOnly
    End If

    When the code executes, submittedyet = -1 and rejectedyet =-1. However the code executes the code in the if block. Why is this? Do I have the syntax incorrect.
    Thanks,

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Conditional Help (2007)

    You must use the keyword And instead of & for the latter is the string concatenation operator.

  3. #3
    2 Star Lounger
    Join Date
    Apr 2002
    Location
    Evansville, Indiana, USA
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Conditional Help (2007)

    That fixed it... thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •