Can't Edit Table Through My Form - ADO DAO RDO RDS

This is a discussion on Can't Edit Table Through My Form - ADO DAO RDO RDS ; I am trying to edit a table through a text box on a form instead of directly in the table, but cannot edit the data. 1. The form is set up with its own query as a recordsource to a ...

+ Reply to Thread
Results 1 to 7 of 7

Can't Edit Table Through My Form

  1. Default Can't Edit Table Through My Form

    I am trying to edit a table through a text box on a form instead of
    directly in the table, but cannot edit the data.

    1. The form is set up with its own query as a recordsource to a
    table.
    2. Control source for the text box on the form bound to a field in
    the table recordsource at the control source.

    3. Locked property is set to no, Allow Edits, Data Entry,Deletions,
    Additions are all set to yes.

    It seems like I have everything set up logically to do this, but I am
    stumped because I cannot edit anything on the form for some reason.

    Any helped on what I am doing wrong would be appreciated.

    Stumped,
    Coby.


  2. Default Re: Can't Edit Table Through My Form

    On Thu, 16 Aug 2007 16:27:52 -0700, Coby <coby.gifford@selectbuild.com> wrote:

    >I am trying to edit a table through a text box on a form instead of
    >directly in the table, but cannot edit the data.
    >
    >1. The form is set up with its own query as a recordsource to a
    >table.
    >2. Control source for the text box on the form bound to a field in
    >the table recordsource at the control source.
    >
    >3. Locked property is set to no, Allow Edits, Data Entry,Deletions,
    >Additions are all set to yes.


    It's very likely that the Query itself is not updateable. Not all queries are!
    Totals queries, Unique Values queries, UNION queries, etc. all block updating.

    Try opening the query itself in datasheet view. Is there a *> new record row
    at the bottom? If not, that's the problem. You could open it in SQL view and
    post the SQL text here for help in making it into an updatable query.

    John W. Vinson [MVP]

  3. Default Re: Can't Edit Table Through My Form

    On Aug 16, 4:43 pm, John W. Vinson
    <jvinson@STOP_SPAM.WysardOfInfo.com> wrote:
    > On Thu, 16 Aug 2007 16:27:52 -0700, Coby <coby.giff...@selectbuild.com> wrote:
    > >I am trying to edit a table through a text box on a form instead of
    > >directly in the table, but cannot edit the data.

    >
    > >1. The form is set up with its own query as a recordsource to a
    > >table.
    > >2. Control source for the text box on the form bound to a field in
    > >the table recordsource at the control source.

    >
    > >3. Locked property is set to no, Allow Edits, Data Entry,Deletions,
    > >Additions are all set to yes.

    >
    > It's very likely that the Query itself is not updateable. Not all queries are!
    > Totals queries, Unique Values queries, UNION queries, etc. all block updating.
    >
    > Try opening the query itself in datasheet view. Is there a *> new record row
    > at the bottom? If not, that's the problem. You could open it in SQL view and
    > post the SQL text here for help in making it into an updatable query.
    >
    > John W. Vinson [MVP]


    Thanks for your help! I appreciate if a lot. Here is the sql text:

    SELECT MaryLumTransDb.[8801_ActiveStatus], MaryLumTransDb.
    [8806_ActiveStatus], MaryLumTransDb.NxTrendDescription,
    MaryLumTransDb.NxTrendSKU

    FROM MaryLumTransDb

    GROUP BY MaryLumTransDb.[8801_ActiveStatus], MaryLumTransDb.
    [8806_ActiveStatus], MaryLumTransDb.NxTrendDescription,
    MaryLumTransDb.NxTrendSKU, MaryLumTransDb.ThickActual,
    MaryLumTransDb.WidthActual, MaryLumTransDb.Length

    ORDER BY IIf(Me!Option8801.Value=True,MaryLumTransDb.
    [8801_ActiveStatus],MaryLumTransDb.[8806_ActiveStatus]) DESC ,
    MaryLumTransDb.ThickActual, MaryLumTransDb.WidthActual,
    MaryLumTransDb.Length;


    Coby.


  4. Default Re: Can't Edit Table Through My Form

    "Coby" <coby.gifford@selectbuild.com> wrote in message
    news:1187308434.034751.199100@z24g2000prh.googlegroups.com...
    > On Aug 16, 4:43 pm, John W. Vinson
    > <jvinson@STOP_SPAM.WysardOfInfo.com> wrote:
    >> On Thu, 16 Aug 2007 16:27:52 -0700, Coby <coby.giff...@selectbuild.com>
    >> wrote:
    >> >I am trying to edit a table through a text box on a form instead of
    >> >directly in the table, but cannot edit the data.

    >>
    >> >1. The form is set up with its own query as a recordsource to a
    >> >table.
    >> >2. Control source for the text box on the form bound to a field in
    >> >the table recordsource at the control source.

    >>
    >> >3. Locked property is set to no, Allow Edits, Data Entry,Deletions,
    >> >Additions are all set to yes.

    >>
    >> It's very likely that the Query itself is not updateable. Not all queries
    >> are!
    >> Totals queries, Unique Values queries, UNION queries, etc. all block
    >> updating.
    >>
    >> Try opening the query itself in datasheet view. Is there a *> new record row
    >> at the bottom? If not, that's the problem. You could open it in SQL view and
    >> post the SQL text here for help in making it into an updatable query.
    >>
    >> John W. Vinson [MVP]

    >
    > Thanks for your help! I appreciate if a lot. Here is the sql text:
    >
    > SELECT MaryLumTransDb.[8801_ActiveStatus], MaryLumTransDb.
    > [8806_ActiveStatus], MaryLumTransDb.NxTrendDescription,
    > MaryLumTransDb.NxTrendSKU
    >
    > FROM MaryLumTransDb
    >
    > GROUP BY [snip]


    A query with GROUP BY is NEVER editable.

    --
    Rick Brandt, Microsoft Access MVP
    Email (as appropriate) to...
    RBrandt at Hunter dot com



  5. Default Re: Can't Edit Table Through My Form

    On Aug 16, 4:58 pm, "Rick Brandt" <rickbran...@hotmail.com> wrote:
    > "Coby" <coby.giff...@selectbuild.com> wrote in message
    >
    > news:1187308434.034751.199100@z24g2000prh.googlegroups.com...
    >
    >
    >
    >
    >
    > > On Aug 16, 4:43 pm, John W. Vinson
    > > <jvinson@STOP_SPAM.WysardOfInfo.com> wrote:
    > >> On Thu, 16 Aug 2007 16:27:52 -0700, Coby <coby.giff...@selectbuild.com>
    > >> wrote:
    > >> >I am trying to edit a table through a text box on a form instead of
    > >> >directly in the table, but cannot edit the data.

    >
    > >> >1. The form is set up with its own query as a recordsource to a
    > >> >table.
    > >> >2. Control source for the text box on the form bound to a field in
    > >> >the table recordsource at the control source.

    >
    > >> >3. Locked property is set to no, Allow Edits, Data Entry,Deletions,
    > >> >Additions are all set to yes.

    >
    > >> It's very likely that the Query itself is not updateable. Not all queries
    > >> are!
    > >> Totals queries, Unique Values queries, UNION queries, etc. all block
    > >> updating.

    >
    > >> Try opening the query itself in datasheet view. Is there a *> new record row
    > >> at the bottom? If not, that's the problem. You could open it in SQL view and
    > >> post the SQL text here for help in making it into an updatable query.

    >
    > >> John W. Vinson [MVP]

    >
    > > Thanks for your help! I appreciate if a lot. Here is the sql text:

    >
    > > SELECT MaryLumTransDb.[8801_ActiveStatus], MaryLumTransDb.
    > > [8806_ActiveStatus], MaryLumTransDb.NxTrendDescription,
    > > MaryLumTransDb.NxTrendSKU

    >
    > > FROM MaryLumTransDb

    >
    > > GROUP BY [snip]

    >
    > A query with GROUP BY is NEVER editable.
    >
    > --
    > Rick Brandt, Microsoft Access MVP
    > Email (as appropriate) to...
    > RBrandt at Hunter dot com- Hide quoted text -
    >
    > - Show quoted text -


    That did it . . . and now makes complete logical sense to me. I
    didn't even need the group by in this particualar query anyhow. Most
    of my work involves querying data for reporting and have only recently
    needed to acually write to the data, so group by just became habit
    when writing a new query since I am often using a lot of sum
    functions, etc.. Thank you very much! My work is all cut out for me
    for awhile now.


    Coby.




  6. Default RE: Can't Edit Table Through My Form

    What is the SQL of the query for your form?

    You can view the query in SQL view and paste the SQL from there.

    Some types of query are not updateable, e.g. those that have a GroupBy
    clause...

    Steve

    "Coby" wrote:

    > I am trying to edit a table through a text box on a form instead of
    > directly in the table, but cannot edit the data.
    >
    > 1. The form is set up with its own query as a recordsource to a
    > table.
    > 2. Control source for the text box on the form bound to a field in
    > the table recordsource at the control source.
    >
    > 3. Locked property is set to no, Allow Edits, Data Entry,Deletions,
    > Additions are all set to yes.
    >
    > It seems like I have everything set up logically to do this, but I am
    > stumped because I cannot edit anything on the form for some reason.
    >
    > Any helped on what I am doing wrong would be appreciated.
    >
    > Stumped,
    > Coby.
    >
    >


  7. Default Re: Can't Edit Table Through My Form

    You should never use Group By unless it is absolutely necessary. It will make
    your queries less efficient.

    Steve

    "Coby" wrote:

    > On Aug 16, 4:58 pm, "Rick Brandt" <rickbran...@hotmail.com> wrote:
    > > "Coby" <coby.giff...@selectbuild.com> wrote in message
    > >
    > > news:1187308434.034751.199100@z24g2000prh.googlegroups.com...
    > >
    > >
    > >
    > >
    > >
    > > > On Aug 16, 4:43 pm, John W. Vinson
    > > > <jvinson@STOP_SPAM.WysardOfInfo.com> wrote:
    > > >> On Thu, 16 Aug 2007 16:27:52 -0700, Coby <coby.giff...@selectbuild.com>
    > > >> wrote:
    > > >> >I am trying to edit a table through a text box on a form instead of
    > > >> >directly in the table, but cannot edit the data.

    > >
    > > >> >1. The form is set up with its own query as a recordsource to a
    > > >> >table.
    > > >> >2. Control source for the text box on the form bound to a field in
    > > >> >the table recordsource at the control source.

    > >
    > > >> >3. Locked property is set to no, Allow Edits, Data Entry,Deletions,
    > > >> >Additions are all set to yes.

    > >
    > > >> It's very likely that the Query itself is not updateable. Not all queries
    > > >> are!
    > > >> Totals queries, Unique Values queries, UNION queries, etc. all block
    > > >> updating.

    > >
    > > >> Try opening the query itself in datasheet view. Is there a *> new record row
    > > >> at the bottom? If not, that's the problem. You could open it in SQL view and
    > > >> post the SQL text here for help in making it into an updatable query.

    > >
    > > >> John W. Vinson [MVP]

    > >
    > > > Thanks for your help! I appreciate if a lot. Here is the sql text:

    > >
    > > > SELECT MaryLumTransDb.[8801_ActiveStatus], MaryLumTransDb.
    > > > [8806_ActiveStatus], MaryLumTransDb.NxTrendDescription,
    > > > MaryLumTransDb.NxTrendSKU

    > >
    > > > FROM MaryLumTransDb

    > >
    > > > GROUP BY [snip]

    > >
    > > A query with GROUP BY is NEVER editable.
    > >
    > > --
    > > Rick Brandt, Microsoft Access MVP
    > > Email (as appropriate) to...
    > > RBrandt at Hunter dot com- Hide quoted text -
    > >
    > > - Show quoted text -

    >
    > That did it . . . and now makes complete logical sense to me. I
    > didn't even need the group by in this particualar query anyhow. Most
    > of my work involves querying data for reporting and have only recently
    > needed to acually write to the data, so group by just became habit
    > when writing a new query since I am often using a lot of sum
    > functions, etc.. Thank you very much! My work is all cut out for me
    > for awhile now.
    >
    >
    > Coby.
    >
    >
    >
    >


+ Reply to Thread

Similar Threads

  1. edit table values with OnClicK?
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 10-25-2007, 08:05 PM
  2. make backup of table before edit
    By Application Development in forum ADO DAO RDO RDS
    Replies: 2
    Last Post: 10-03-2007, 07:29 AM
  3. Use a data view form as edit form
    By Application Development in forum Sharepoint
    Replies: 0
    Last Post: 04-24-2007, 04:03 AM
  4. Help! Can't edit a rotated table!
    By Application Development in forum Adobe Framemaker
    Replies: 1
    Last Post: 01-11-2007, 11:36 AM
  5. Please help - tabular ASP form to edit data in table
    By Application Development in forum Inetserver
    Replies: 3
    Last Post: 10-16-2005, 09:27 PM