stLinkCriteria on multiple criteria, different types fo criteria

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • crazyhouse
    New Member
    • Aug 2008
    • 31

    stLinkCriteria on multiple criteria, different types fo criteria

    This is the line of code i am trying to use. It doesnt work. I want the form to open only records that match the inspectjn, and accqty isnull.

    inspectjn is text
    accqty is a number

    Code:
    stLinkCriteria = "[inspectjn]=" & "'" & [strTrackingNum] & "'" And IsNull([accqty])
    Any help would be greatly appreciated. Thanks in advance.,
  • Dan2kx
    Contributor
    • Oct 2007
    • 365

    #2
    you got anymore info? do you want the form to only show 1 record? or multiple with 'next'/'previous' buttons, whats the situation? etc..

    Comment

    • DonRayner
      Recognized Expert Contributor
      • Sep 2008
      • 489

      #3
      Try your code like this.

      Code:
      stLinkCriteria = "[inspectjn] = " & """" & [strTrackingNum] & """" & " And IsNull([accqty])"

      Comment

      • crazyhouse
        New Member
        • Aug 2008
        • 31

        #4
        thanks DonRayner, worked like a charm.

        Dan2kx, it ends up being one record, but i guess it could have been multiple records. But you bring up something I am interested in. Can i get rid of the previous/next button in code..... so that it can be conditional. Instead of having it either load everytime or not?

        Comment

        • crazyhouse
          New Member
          • Aug 2008
          • 31

          #5
          nevermind..... silly question. sorry

          Comment

          Working...