Welcome to SPN

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

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

Checkbox Bug

Discussion in 'Information Technology' started by alex, Jul 28, 2006.

Tags:
  1. alex

    alex
    Expand Collapse
    Guest

    Hi,

    It looks like I found a bug in fully patched Access XP ADP projects. The
    problem is that if your code accesses a form's bound recordset object,
    clicking any checkbox on the form causes application to crash.
    A sample file demonstrating the problem can be downloaded here:

    http://www.aleksoft.net/samples/AccessXP_BugSample.adp

    Way to reproduce the problem:

    Open the TestForm
    Click the check box to change its state and optionally enter something into
    the text box
    Note that everything works as expected.

    Now click the button - nothing happens
    Optionally type anything into the text box, it still works.
    Click the check box again and the application bombs up.

    The code behind the button is this:

    Dim x As Recordset
    Set x = Me.Recordset
    Set x = Nothing

    It does not matter which property of the recordset you are accessing, result
    is the same.

    This is a description of the back-end table.

    CREATE TABLE [TestTable] (
    [ID] [int] IDENTITY (1, 1) NOT NULL ,
    [BitValue] [bit] NULL ,
    [TextValue] [char] (10) NULL ,
    CONSTRAINT [PK_TestTable] PRIMARY KEY CLUSTERED
    (
    [ID]
    ) ON [PRIMARY]
    ) ON [PRIMARY]
    GO

    Any comments?

    Alex.
     
  2. Loading...

    Similar Threads Forum Date
    Arts/Society Bitten by the B Bug Language, Arts & Culture Oct 10, 2011
    Opinion Of Religious Converts and Other Humbugs Breaking News Sep 19, 2011
    Sikhism on Bugs? Sikh Sikhi Sikhism May 17, 2011
    Flu: How to Beat the Bugs Health & Nutrition Jan 11, 2011
    SciTech Zero day Flash bugs squashed by Adobe Breaking News Nov 6, 2010

  3. Arvin Meyer [MVP]

    Arvin Meyer [MVP]
    Expand Collapse
    Guest

    I believe this has been corrected in Access 2003. My workaround in Access
    2002 was to use comboboxes for boolean fields.
    --
    Arvin Meyer, MCP, MVP
    Microsoft Access
    Free Access downloads
    http://www.datastrat.com
    http://www.mvps.org/access

    "alex" <nobody@nowhere.net> wrote in message
    news:#99Ag3yiGHA.1936@TK2MSFTNGP04.phx.gbl...
    > Hi,
    >
    > It looks like I found a bug in fully patched Access XP ADP projects. The
    > problem is that if your code accesses a form's bound recordset object,
    > clicking any checkbox on the form causes application to crash.
    > A sample file demonstrating the problem can be downloaded here:
    >
    > http://www.aleksoft.net/samples/AccessXP_BugSample.adp
    >
    > Way to reproduce the problem:
    >
    > Open the TestForm
    > Click the check box to change its state and optionally enter something

    into
    > the text box
    > Note that everything works as expected.
    >
    > Now click the button - nothing happens
    > Optionally type anything into the text box, it still works.
    > Click the check box again and the application bombs up.
    >
    > The code behind the button is this:
    >
    > Dim x As Recordset
    > Set x = Me.Recordset
    > Set x = Nothing
    >
    > It does not matter which property of the recordset you are accessing,

    result
    > is the same.
    >
    > This is a description of the back-end table.
    >
    > CREATE TABLE [TestTable] (
    > [ID] [int] IDENTITY (1, 1) NOT NULL ,
    > [BitValue] [bit] NULL ,
    > [TextValue] [char] (10) NULL ,
    > CONSTRAINT [PK_TestTable] PRIMARY KEY CLUSTERED
    > (
    > [ID]
    > ) ON [PRIMARY]
    > ) ON [PRIMARY]
    > GO
    >
    > Any comments?
    >
    > Alex.
    >
    >
     
  4. nobody

    nobody
    Expand Collapse
    Guest

    We still have more 2002 installations than 2003.
    My workaround is to access the RecordsetClone property instead.
    It would be nice to have the bug fixed.

    Alex.

    "Arvin Meyer [MVP]" <a@m.com> wrote in message
    news:%23nPW$Z3iGHA.1208@TK2MSFTNGP02.phx.gbl...
    >I believe this has been corrected in Access 2003. My workaround in Access
    > 2002 was to use comboboxes for boolean fields.
    > --
    > Arvin Meyer, MCP, MVP
    > Microsoft Access
    > Free Access downloads
    > http://www.datastrat.com
    > http://www.mvps.org/access
    >
    > "alex" <nobody@nowhere.net> wrote in message
    > news:#99Ag3yiGHA.1936@TK2MSFTNGP04.phx.gbl...
    >> Hi,
    >>
    >> It looks like I found a bug in fully patched Access XP ADP projects. The
    >> problem is that if your code accesses a form's bound recordset object,
    >> clicking any checkbox on the form causes application to crash.
    >> A sample file demonstrating the problem can be downloaded here:
    >>
    >> http://www.aleksoft.net/samples/AccessXP_BugSample.adp
    >>
    >> Way to reproduce the problem:
    >>
    >> Open the TestForm
    >> Click the check box to change its state and optionally enter something

    > into
    >> the text box
    >> Note that everything works as expected.
    >>
    >> Now click the button - nothing happens
    >> Optionally type anything into the text box, it still works.
    >> Click the check box again and the application bombs up.
    >>
    >> The code behind the button is this:
    >>
    >> Dim x As Recordset
    >> Set x = Me.Recordset
    >> Set x = Nothing
    >>
    >> It does not matter which property of the recordset you are accessing,

    > result
    >> is the same.
    >>
    >> This is a description of the back-end table.
    >>
    >> CREATE TABLE [TestTable] (
    >> [ID] [int] IDENTITY (1, 1) NOT NULL ,
    >> [BitValue] [bit] NULL ,
    >> [TextValue] [char] (10) NULL ,
    >> CONSTRAINT [PK_TestTable] PRIMARY KEY CLUSTERED
    >> (
    >> [ID]
    >> ) ON [PRIMARY]
    >> ) ON [PRIMARY]
    >> GO
    >>
    >> Any comments?
    >>
    >> Alex.
    >>
    >>

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