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

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.
    > >
     
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