• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Access problem - can anyone help please

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Access problem - can anyone help please

    Before I can someone please explain what I have done wrong here:

    Private Sub Command28_Click()

    Me.Filter = "Skills Like '*" & Me.Text26 & "*" '"
    Me.FilterOn = True
    Me.Requery

    End Sub

    Is coming up with a syntax error but can figure it out - obviously have a ' or a " in the wrong place somewhere
    Connect with me on LinkedIn

    Follow us on Twitter.

    ContractorUK Best Forum Advisor 2015

    #2
    Originally posted by LisaContractorUmbrella View Post
    Before I can someone please explain what I have done wrong here:

    Private Sub Command28_Click()

    Me.Filter = "Skills Like '*" & Me.Text26 & "*" '"
    Me.FilterOn = True
    Me.Requery

    End Sub

    Is coming up with a syntax error but can figure it out - obviously have a ' or a " in the wrong place somewhere
    You've got a single quote before the first * and a double quote after it?

    PHP Code:
    Me.Filter "Skills Like '*' & Me.Text26 & '*' " 
    maybe?? Just a guess, I honestly don't know, but that would seem to tally the ' and " together.
    Best Forum Advisor 2014
    Work in the public sector? You can read my FAQ here
    Click here to get 15% off your first year's IPSE membership

    Comment


      #3
      Not used Access for over a decade (use SQL Server), but quick guess: you need to swap * with % ? Oh and last bit:

      & " % ' "
      If you think my attitude stinks, you should smell my fingers.

      Comment


        #4
        Access problem - can anyone help please

        Can you not get a man to do it?

        (Ducks for cover...)

        Comment


          #5
          Originally posted by stek View Post
          Can you not get a man to do it?

          (Ducks for cover...)
          Way you go then - what's the answer huh? huh?
          Connect with me on LinkedIn

          Follow us on Twitter.

          ContractorUK Best Forum Advisor 2015

          Comment


            #6
            Access problem - can anyone help please

            Originally posted by LisaContractorUmbrella View Post
            Way you go then - what's the answer huh? huh?
            I'm a girl too, I don't know much about Access, but I do know I love Kittens!!

            Comment


              #7
              Originally posted by TheFaQQer View Post
              You've got a single quote before the first * and a double quote after it?

              PHP Code:
              Me.Filter "Skills Like '*' & Me.Text26 & '*' " 
              maybe?? Just a guess, I honestly don't know, but that would seem to tally the ' and " together.
              Faqqer you are completely wonderful - thanks a lot
              Connect with me on LinkedIn

              Follow us on Twitter.

              ContractorUK Best Forum Advisor 2015

              Comment


                #8
                Originally posted by stek View Post
                I'm a girl too, I don't know much about Access, but I do know I love Kittens!!
                Oops sorry
                Connect with me on LinkedIn

                Follow us on Twitter.

                ContractorUK Best Forum Advisor 2015

                Comment


                  #9
                  Originally posted by stek View Post
                  I'm a girl too, I don't know much about Access, but I do know I love Kittens!!
                  Put the kettle on love

                  Lisa - I like kittens too and not sure but you might also get a problem if you've got ' or " in Me.Text26.
                  +50 Xeno Geek Points
                  Come back Toolpusher, scotspine, Voodooflux. Pogle
                  As for the rest of you - DILLIGAF

                  Purveyor of fine quality smut since 2005

                  CUK Olympic University Challenge Champions 2010/2012

                  Comment


                    #10
                    Originally posted by LisaContractorUmbrella View Post
                    Oops sorry
                    Don't worry, I am a boy (PM me for proof, I have pictures of parts of me that I don't show on here ) but what you should be doing is using Stored Procedures in Oracle RAC in a RISC virtual environment, right lads?

                    Access is for lasses, poufs and NLUK.

                    Comment

                    Working...
                    X