How to UPDATE records using a sub-form

D

DetRich

Hello,

I am trying to develop a Computer-Info type of database.
I have a main form that has a Tab control. Each tab has a subform on it.
The main form displays data from the main, or Parent table. Each sub-form of
course has data from a child-table. Tab #1 has hardware config info.

Problem:
Whenever I try to update anyting on a sub-form, I get an error indicating
the update is not allowed. Actually, Access is trying to add a new record.
How do I tell Access that it should be updating an existing record and not
creating a new record? I need Access to do this rather than writing the SQL
code myself. I'm still a novice not that good yet.

TIA,
Rich
 
J

John W. Vinson

Hello,

I am trying to develop a Computer-Info type of database.
I have a main form that has a Tab control. Each tab has a subform on it.
The main form displays data from the main, or Parent table. Each sub-form of
course has data from a child-table. Tab #1 has hardware config info.

Problem:
Whenever I try to update anyting on a sub-form, I get an error indicating
the update is not allowed. Actually, Access is trying to add a new record.
How do I tell Access that it should be updating an existing record and not
creating a new record? I need Access to do this rather than writing the SQL
code myself. I'm still a novice not that good yet.

TIA,
Rich

What is the Control Source of the subform? What are its Master and Child Link
Fields? Is the subform's Data Entry property set to No (it should be)?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top