Welcome to SPN

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

Sign Up Now!

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
     

Share This Page