dbTalk Databases Forums  

Forms - Make Some But Not All Feilds Updateable

comp.databases.ms-access comp.databases.ms-access


Discuss Forms - Make Some But Not All Feilds Updateable in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gilgamesh
 
Posts: n/a

Default Forms - Make Some But Not All Feilds Updateable - 03-22-2010 , 02:46 PM






Hi,

I've been creating a few forms - my first forays into this.
Previously I've used access for querying and writing reports; the data
having come from other databases and been imported in large chunks
into my access databases.

I've created a couple of forms. Some bound to a table, some with a
form and a subform. And a couple where the data source is a query
that selects from two tables, like this:

select tbl1.id, tbl1.lastname, tbl1.firstname, tbl2.textdata1,
tbl2.textdata2, tbl2.textdata3 where tbl1.id - tbl2.id ;

My form works just fine. All the fields in the query are displayed on
the form. I am using it to add, edit, and delete rows in tbl2. I do
not want to be able to change data in tbl1 though. I'm not quite
sure how to achieve that. A couple of time I've inadvertenly typed
into the fields for the tbl1 data and changed it. I only want to be
able to search for the tbl1 data; that is, look for all the data
associated with id 007, or lastname = Bond, but do not want to change
any tbl1 data, only change stuff in tbl2.

Any help appreciated,

Thanks.

Reply With Quote
  #2  
Old   
Salad
 
Posts: n/a

Default Re: Forms - Make Some But Not All Feilds Updateable - 03-22-2010 , 04:24 PM






Gilgamesh wrote:
Quote:
Hi,

I've been creating a few forms - my first forays into this.
Previously I've used access for querying and writing reports; the data
having come from other databases and been imported in large chunks
into my access databases.

I've created a couple of forms. Some bound to a table, some with a
form and a subform. And a couple where the data source is a query
that selects from two tables, like this:

select tbl1.id, tbl1.lastname, tbl1.firstname, tbl2.textdata1,
tbl2.textdata2, tbl2.textdata3 where tbl1.id - tbl2.id ;

My form works just fine. All the fields in the query are displayed on
the form. I am using it to add, edit, and delete rows in tbl2. I do
not want to be able to change data in tbl1 though. I'm not quite
sure how to achieve that. A couple of time I've inadvertenly typed
into the fields for the tbl1 data and changed it. I only want to be
able to search for the tbl1 data; that is, look for all the data
associated with id 007, or lastname = Bond, but do not want to change
any tbl1 data, only change stuff in tbl2.

Any help appreciated,

Thanks.

In your tbl1 fields you could set the Locked property to True. If
Enabled and Locked are both True, you can enter the field, view the
field, but you can't modify the field.

For me, fields that allow input are sunken. Those that are locked/not
modifiable are flat. That provides a small visual representation of
fields that can be modified and those that can't. Locking it will
ensure it.

Reply With Quote
  #3  
Old   
Gilgamesh
 
Posts: n/a

Default Re: Forms - Make Some But Not All Feilds Updateable - 03-23-2010 , 11:30 AM



On Mar 22, 3:24*pm, Salad <sa... (AT) oilandvinegar (DOT) com> wrote:
Quote:
Gilgamesh wrote:
Hi,

I've been creating a few forms - my first forays into this.
Previously I've used access for querying and writing reports; the data
having come from other databases and been imported in large chunks
into my access databases.

I've created a couple of forms. * Some bound to a table, some with a
form and a subform. * And a couple where the data source is a query
that selects from two tables, like this:

select tbl1.id, tbl1.lastname, tbl1.firstname, tbl2.textdata1,
tbl2.textdata2, tbl2.textdata3 where tbl1.id - tbl2.id ;

My form works just fine. All the fields in the query are displayed on
the form. *I am using it to add, edit, and delete rows in tbl2. *I do
not want to be able to change data in tbl1 though. * I'm not quite
sure how to achieve that. *A couple of time I've inadvertenly typed
into the fields for the tbl1 data and changed it. *I only want to be
able to search for the tbl1 data; that is, look for all the data
associated with id 007, or lastname = Bond, *but do not want to change
any tbl1 data, only change stuff in tbl2.

Any help appreciated,

Thanks.

In your tbl1 fields you could set the Locked property to True. *If
Enabled and Locked are both True, you can enter the field, view the
field, but you can't modify the field.

For me, fields that allow input are sunken. *Those that are locked/not
modifiable are flat. *That provides a small visual representation of
fields that can be modified and those that can't. *Locking it will
ensure it.- Hide quoted text -

- Show quoted text -
Thanks, that did just what I wanted.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.