Welcome to SPN

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

Sign Up Now!

DoCmd Option Not Available At This Time

Discussion in 'Information Technology' started by ortaias@hotmail.com, Jul 28, 2006.

  1. ortaias@hotmail.com

    ortaias@hotmail.com
    Expand Collapse
    Guest

    I Would like to confirm if "DoCmd.FindRecord" only works when one is
    working with open forms. I am doing a short batch program to find
    duplicate entries. No forms are utilized. I noticed that "DoCmd.Beep"
    works but the "DoCmd.FindRecord" does not, I get the error message that
    his option is not available. I am assuming that "FindRecord" will
    work, provided it is operating within an open form.

    My workaround, for now, is to use the "DCount" option. If I get two
    hits, then I know there is a duplicate entry.
     
  2. Loading...

    Similar Threads Forum Date
    Adoption: Why is it Taboo? Hard Talk Jun 21, 2013
    USA Florida Court Voids Adoption Of Millionaire’s Girlfriend As Sham Breaking News Mar 29, 2013
    Opinion Dog loving babas of Juna Akhada advocate adoption of street dogs Breaking News Jan 21, 2013
    Controversial Only option for fading churches is to again take up evangelization Hard Talk Dec 26, 2012
    Introducing New Functionality: Dislikes Option Announcements Apr 12, 2012

  3. Brendan Reynolds

    Brendan Reynolds
    Expand Collapse
    Guest

    The FindRecord action will search the active form, or the active table or
    query open in datasheet view. It won't work if no form is active and no
    table or query is open in datasheet view. To access (no pun, etc) data
    without opening a form or a table or query in datasheet view, you can use
    commands such as DCount or DLookup, or you can open a DAO or ADO recordset.

    --
    Brendan Reynolds
    Access MVP


    <ortaias@hotmail.com> wrote in message
    news:1148995176.688450.269780@u72g2000cwu.googlegroups.com...
    >I Would like to confirm if "DoCmd.FindRecord" only works when one is
    > working with open forms. I am doing a short batch program to find
    > duplicate entries. No forms are utilized. I noticed that "DoCmd.Beep"
    > works but the "DoCmd.FindRecord" does not, I get the error message that
    > his option is not available. I am assuming that "FindRecord" will
    > work, provided it is operating within an open form.
    >
    > My workaround, for now, is to use the "DCount" option. If I get two
    > hits, then I know there is a duplicate entry.
    >
     
  4. ortaias@hotmail.com

    ortaias@hotmail.com
    Expand Collapse
    Guest

    Thanks. You confirmed what I expected.

    Brendan Reynolds wrote:
    > The FindRecord action will search the active form, or the active table or
    > query open in datasheet view. It won't work if no form is active and no
    > table or query is open in datasheet view. To access (no pun, etc) data
    > without opening a form or a table or query in datasheet view, you can use
    > commands such as DCount or DLookup, or you can open a DAO or ADO recordset.
    >
    > --
    > Brendan Reynolds
    > Access MVP
    >
    >
    > <ortaias@hotmail.com> wrote in message
    > news:1148995176.688450.269780@u72g2000cwu.googlegroups.com...
    > >I Would like to confirm if "DoCmd.FindRecord" only works when one is
    > > working with open forms. I am doing a short batch program to find
    > > duplicate entries. No forms are utilized. I noticed that "DoCmd.Beep"
    > > works but the "DoCmd.FindRecord" does not, I get the error message that
    > > his option is not available. I am assuming that "FindRecord" will
    > > work, provided it is operating within an open form.
    > >
    > > My workaround, for now, is to use the "DCount" option. If I get two
    > > hits, then I know there is a duplicate entry.
    > >
     

Share This Page