|
|
edit a bound textbox control on a form
Hello All,
I am trying to update bound text box values so as to update the record in
the table. I have a form that i set the data entry to "NO" b/c the
recordsource of the textbox controls are bound to the value from the database
using a query.
Once the form pulls up the record from the database i want the user to be
able to edit the current values of the texbox control to allow them change /
update any value from what it was originally and i can update the records in
the table
My problem:
I am not able to edit the individual textbox values because they are bound
how do i make it so that they can be edited even though they are bound? When
i change the form data entry to yes, the texbox(s) are no longer populated /
filled out.
Thanks.
|
|
0
|
|
|
|
Reply
|
Utf
|
2/8/2010 4:58:01 PM |
|
Ecwhite -
The 'data entry' property indicates entry for a new record, which is why
they are blank when you turn that on. You can keep that as No for updates.
To update the table, the controls must be bound to the record. Can you
explain what you mean by you are "not able to edit the individual textbox
values"? Are they grayed out or something? Are all controls disabled, or
just some?
Your form should have "Allow Edits" property set to Yes. Your individual
controls should have "Enabled" set to Yes, and "Locked" set to No. I don't
suspect the recordsource if you were able to enter data in the "Data Entry"
mode.
Give us a little more information on the form and its controls and describe
what happens when you try to update.
--
Daryl S
"ecwhite" wrote:
> Hello All,
>
> I am trying to update bound text box values so as to update the record in
> the table. I have a form that i set the data entry to "NO" b/c the
> recordsource of the textbox controls are bound to the value from the database
> using a query.
>
> Once the form pulls up the record from the database i want the user to be
> able to edit the current values of the texbox control to allow them change /
> update any value from what it was originally and i can update the records in
> the table
>
> My problem:
> I am not able to edit the individual textbox values because they are bound
> how do i make it so that they can be edited even though they are bound? When
> i change the form data entry to yes, the texbox(s) are no longer populated /
> filled out.
>
> Thanks.
|
|
0
|
|
|
|
Reply
|
Utf
|
2/8/2010 5:13:01 PM
|
|
Thanks Daryl. All settings are exactly what you described.
What I mean is i can not type into the textbox. When i try to type so as to
change what is currently showing in the textbox i hear the ding sound i
can't type. I have not even started the update i just need to be able to
overwrite the current value in the textbox by adding to or typing over.
"Daryl S" wrote:
> Ecwhite -
>
> The 'data entry' property indicates entry for a new record, which is why
> they are blank when you turn that on. You can keep that as No for updates.
> To update the table, the controls must be bound to the record. Can you
> explain what you mean by you are "not able to edit the individual textbox
> values"? Are they grayed out or something? Are all controls disabled, or
> just some?
>
> Your form should have "Allow Edits" property set to Yes. Your individual
> controls should have "Enabled" set to Yes, and "Locked" set to No. I don't
> suspect the recordsource if you were able to enter data in the "Data Entry"
> mode.
>
> Give us a little more information on the form and its controls and describe
> what happens when you try to update.
>
> --
> Daryl S
>
>
> "ecwhite" wrote:
>
> > Hello All,
> >
> > I am trying to update bound text box values so as to update the record in
> > the table. I have a form that i set the data entry to "NO" b/c the
> > recordsource of the textbox controls are bound to the value from the database
> > using a query.
> >
> > Once the form pulls up the record from the database i want the user to be
> > able to edit the current values of the texbox control to allow them change /
> > update any value from what it was originally and i can update the records in
> > the table
> >
> > My problem:
> > I am not able to edit the individual textbox values because they are bound
> > how do i make it so that they can be edited even though they are bound? When
> > i change the form data entry to yes, the texbox(s) are no longer populated /
> > filled out.
> >
> > Thanks.
|
|
0
|
|
|
|
Reply
|
Utf
|
2/8/2010 5:26:01 PM
|
|
The reasons that a bound form will not allow records to be edited include:
1) AllowEdits for the form is set to No
2) The underlying query the form is based on is Read-Only
3) User doesn't have Write Permission for the folder where the data resides.
4) Form's Recordset Type is set to Snapshot
To see if #2 is the case, from the Objects Dialog box go to Queries and click
on the query that your form is based on to open it. Now try to edit a record
directly in the query. If you're unable to do so, this is the cause of your
problem.
If your query is Read-Only, follow this link to Allen Browne’s article
explaining the reasons this happens.
http://allenbrowne.com/ser-61.html
--
There's ALWAYS more than one way to skin a cat!
Answers/posts based on Access 2000/2003
Message posted via http://www.accessmonster.com
|
|
0
|
|
|
|
Reply
|
Linq
|
2/8/2010 5:48:47 PM
|
|
Thanks a lot to you and Daryl. No. 2 was my problem. I had the GROUP BY
clause in the query which made is read only.
"Linq Adams via AccessMonster.com" wrote:
> The reasons that a bound form will not allow records to be edited include:
>
> 1) AllowEdits for the form is set to No
> 2) The underlying query the form is based on is Read-Only
> 3) User doesn't have Write Permission for the folder where the data resides.
> 4) Form's Recordset Type is set to Snapshot
>
> To see if #2 is the case, from the Objects Dialog box go to Queries and click
> on the query that your form is based on to open it. Now try to edit a record
> directly in the query. If you're unable to do so, this is the cause of your
> problem.
>
> If your query is Read-Only, follow this link to Allen Browne’s article
> explaining the reasons this happens.
>
> http://allenbrowne.com/ser-61.html
>
> --
> There's ALWAYS more than one way to skin a cat!
>
> Answers/posts based on Access 2000/2003
>
> Message posted via http://www.accessmonster.com
>
> .
>
|
|
0
|
|
|
|
Reply
|
Utf
|
2/8/2010 7:07:01 PM
|
|
|
4 Replies
1650 Views
(page loaded in 0.082 seconds)
Similiar Articles: edit a bound textbox control on a form - microsoft.public.access ...Hello All, I am trying to update bound text box values so as to update the record in the table. I have a form that i set the data entry to "NO" b... Can't edit a Bound Textbox - microsoft.public.access.forms ...edit a bound textbox control on a form - microsoft.public.access ... Can't edit a Bound Textbox - microsoft.public.access.forms ... Can't Re-Edit Draft Subscribe 3) User ... How to a bound textbox on a form grow - microsoft.public.access ...edit a bound textbox control on a form - microsoft.public.access ..... to display in your form, i.e. you can change the Control Source property of txtOperationDesc so ... Make TextBox Editable. - microsoft.public.access.reports ...edit a bound textbox control on a form - microsoft.public.access ... Hello All, I am trying to update bound text box values so as to update the record in the table. Change event for a calculated Form TextBox - microsoft.public ...edit a bound textbox control on a form - microsoft.public.access ... Change event for a calculated Form TextBox - microsoft.public ... I clear the value in a textbox ... Change textbox color based on matching value in different textbox ...Not every control on the form is a text box -- that's why you get the type mismatch. ... Can't edit a Bound Textbox - microsoft.public.access.forms ... Change textbox color ... Hyperlink in a Textbox control? - microsoft.public.access ...edit a bound textbox control on a form - microsoft.public.access ... Hyperlink in a Textbox control? - microsoft.public.access ... Disable Textbox - microsoft.public ... Can't edit individual controls after using Form Tool ...edit a bound textbox control on a form - microsoft.public.access ... Can't edit individual controls after using Form Tool ... edit a bound textbox control on a form ... Textbox in form that updates a table. - microsoft.public.access ...edit a bound textbox control on a form - microsoft.public.access ... Hello All, I am trying to update bound text box values so as to update the record in the table. Hyperlink in TextBox - microsoft.public.access.formsMake TextBox Editable. - microsoft.public.access.reports ... Make TextBox Editable. - microsoft.public.access.reports ... edit a bound textbox control on a form ... edit a bound textbox control on a form DataBaseHello All, I am trying to update bound text box values so as to update the record in the table. I have a form that i set the data entry to NO b/c the rec edit a bound textbox control on a form - microsoft.public.access ...Hello All, I am trying to update bound text box values so as to update the record in the table. I have a form that i set the data entry to "NO" b... Bound and Unbound Controls In Access - Welcome To I Get It ...Any kind of control that you place on a form—a textbox, an option button, an image control ... that show address, phone number and picture change—they are bound to ... Can't edit a Bound Textbox - microsoft.public.access.forms ...edit a bound textbox control on a form - microsoft.public.access ... Can't edit a Bound Textbox - microsoft.public.access.forms ... Can't Re-Edit Draft Subscribe 3) User ... Add a text box control to a form or report - Access - Office.comOn a form, you can use a text box that is bound to an updatable record source to enter or edit data in a field. ... an attachment control. Add a bound text box to a form or ... 7/24/2012 5:56:19 PM
|
|
|
|
|
|
|
|
|