Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

Type Mismatch

Discussion in 'Information Technology' started by carterhoward@aaelect.com, Jul 28, 2006.

Tags:
  1. carterhoward@aaelect.com

    carterhoward@aaelect.com
    Expand Collapse
    Guest

    Hi All,

    I am having problems with this filter, the "And" between the two
    filters seems to be giving me a type mismatch and I'm not sure what
    else i can use in it's place, if that is indeed the problem.

    DoCmd.OpenForm "Service Log Edit", , , "[dateserviced] = " & " #" &
    Forms![Service]![Text42] & "#" And "[serialnumber] = " & " '" &
    Forms![Service]![List2] & "'"

    Any one see what i am doing wrong, i'm sure it's looking me in the
    face!

    thanks, Carter
     
  2. Loading...

    Similar Threads Forum Date
    Humor 20 Types Of Gurdwara-Goers Blogs Nov 7, 2016
    Controversial Watch 3 Badass Women Destroy Stereotypes About Body Hair Hard Talk Aug 1, 2016
    Types of Karas Questions and Answers Sep 6, 2014
    How many different types of Sikhs are there? Sikh Sikhi Sikhism Jul 8, 2014
    How Do I Make My Keyboard Type With This Gurmukhi Font? (font by Paul Grosse) Gurbani Download Sep 2, 2013

  3. Ofer Cohen

    Ofer Cohen
    Expand Collapse
    Guest

    You need to put the And inside the quote, try

    DoCmd.OpenForm "Service Log Edit", , , "[dateserviced] = #" &
    Forms![Service]![Text42] & "# And [serialnumber] = '" &
    Forms![Service]![List2] & "'"

    --
    Good Luck
    BS"D


    "carterhoward@aaelect.com" wrote:

    > Hi All,
    >
    > I am having problems with this filter, the "And" between the two
    > filters seems to be giving me a type mismatch and I'm not sure what
    > else i can use in it's place, if that is indeed the problem.
    >
    > DoCmd.OpenForm "Service Log Edit", , , "[dateserviced] = " & " #" &
    > Forms![Service]![Text42] & "#" And "[serialnumber] = " & " '" &
    > Forms![Service]![List2] & "'"
    >
    > Any one see what i am doing wrong, i'm sure it's looking me in the
    > face!
    >
    > thanks, Carter
    >
    >
     
  4. azuser

    azuser
    Expand Collapse
    Guest

    DUH!!!!

    That did the trick, thank you for the help

    Carter
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page