I am trying to create a database (in Acces 2000) to track my fossil
collection. I have a main table that has records for every specemen. I
have a secondary table with information on localities that the specimens
were collected at. The tables are linked. Each record in the specimen
table will link to only 1 record in the locality table, however each
locality can be linked to multiple specimens.
I am trying to create a form (based on the specimen table) that will
have a subform showing the locality information. I'd like to set it up
so that if I am adding a new specimen I can select and existing locality
to link it to , or add a new locality from a subform. What is the best
way for doing this?
I created a combobox on the main form that allows me to select a record
from the locality table to link it to, and it works fine, but it is a
little messy. However, when I try to type a new record in on the
locality subform I get an error that says "You can;t assign a value to
this object" " The object may be a control on a read only form" Also
when adding a new specimen, the add new record button on the locality
subform is greyed out.
Is there something I need to do to be able to add records via the
subform, or is there a problem with my table relationships?
thanks
jjb 4 1876
It's hard to say what's going on without seeing the form, but here are
a couple places to look:
First, does the subform allow additions? edits? deletions?
(these are properties of the form in design view)
Second, did you set the Master/Child field for the subform
object? Click the subform object and check these properties.
Finally, is the recordset for your subform updateable? Open the
query and try to add a record. There are a number of reasons
why a query is not updateable.
--
Danny J. Lesandrini dl*********@hotmail.com http://amazecreations.com
"Jeremiah J. Burton" <jb*****@nospamhewittenergygroup.com> wrote in message
news:7b******************************@news.teranew s.com... I am trying to create a database (in Acces 2000) to track my fossil collection. I have a main table that has records for every specemen. I have a secondary table with information on localities that the specimens were collected at. The tables are linked. Each record in the specimen table will link to only 1 record in the locality table, however each locality can be linked to multiple specimens.
I am trying to create a form (based on the specimen table) that will have a subform showing the locality information. I'd like to set it up so that if I am adding a new specimen I can select and existing locality to link it to , or add a new locality from a subform. What is the best way for doing this? I created a combobox on the main form that allows me to select a record from the locality table to link it to, and it works fine, but it is a little messy. However, when I try to type a new record in on the locality subform I get an error that says "You can;t assign a value to this object" " The object may be a control on a read only form" Also when adding a new specimen, the add new record button on the locality subform is greyed out.
Is there something I need to do to be able to add records via the subform, or is there a problem with my table relationships?
thanks
jjb
The subform allows additions, deletions, and edits
The Child field is set to a filed on the specimen table. The master
field to one on the locality table
The locality table is updateable.
Check you hotmail account, I e-mailed you a zip of the access file
thanks for the help
"Danny J. Lesandrini" <dl*********@hotmail.com> wrote in news:bqqra9
$2*******@ID-82595.news.uni-berlin.de: It's hard to say what's going on without seeing the form, but here are a couple places to look:
First, does the subform allow additions? edits? deletions? (these are properties of the form in design view)
Second, did you set the Master/Child field for the subform object? Click the subform object and check these properties.
Finally, is the recordset for your subform updateable? Open the query and try to add a record. There are a number of reasons why a query is not updateable.
"Jeremiah J. Burton" <jb*****@nospamhewittenergygroup.com> wrote in
news:51******************************@news.teranew s.com: The subform allows additions, deletions, and edits
The Child field is set to a filed on the specimen table. The master field to one on the locality table
But you said originally the Parent form was the specimen table and the
Child table was the locality table. This might be the problem,
The locality table is updateable.
Jeremiah had two controls on the master form pointing to the
Master Link Field, LocalID. One was a textbox and another
was a combo box. Deleting the combo box fixed the problem.
--
Danny J. Lesandrini dl*********@hotmail.com http://datafast.cjb.net
"Jeremiah J. Burton" <jb*****@nospamhewittenergygroup.com> wrote in message
news:51******************************@news.teranew s.com... The subform allows additions, deletions, and edits
The Child field is set to a filed on the specimen table. The master field to one on the locality table
The locality table is updateable.
Check you hotmail account, I e-mailed you a zip of the access file
thanks for the help
"Danny J. Lesandrini" <dl*********@hotmail.com> wrote in news:bqqra9 $2*******@ID-82595.news.uni-berlin.de:
It's hard to say what's going on without seeing the form, but here are a couple places to look:
First, does the subform allow additions? edits? deletions? (these are properties of the form in design view)
Second, did you set the Master/Child field for the subform object? Click the subform object and check these properties.
Finally, is the recordset for your subform updateable? Open the query and try to add a record. There are a number of reasons why a query is not updateable. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Dalan |
last post by:
I have tried both methods of using DSum and creating a Function to
address summing some number columns, but to no avail. Since this has
been a popular topic over the years, I'm sure I'll receive...
|
by: Evil |
last post by:
Hi,
i have a problem with a treeview and some subforms in MS Access97.
I have a form with a treeview on the left side which lets me navigate
thru some projects. Then on the right side, i have...
|
by: Richard Stanton |
last post by:
Hello all
My database has a main form linked to table1. It has several subforms
on the main form, all linked to table2. Table1 and Table2 are linked
by primary/foreign key, no duplicates...
|
by: Zlatko Matić |
last post by:
Hello.
How can I synchronize subforms content with current record in master form,
if both form and subform are based on DAO code ?
I assigned DAO recordset to forms by using QueryDef, on Load...
|
by: ken |
last post by:
Hi,
I have a form that depending on certain criteria locks all of the
subforms on this form. The problem is when the code unlocks the
subforms their "allowedits" "allowdeletions" and...
|
by: emc_cos |
last post by:
I have a very nice parent child relationship happening between a main
form and 8 subforms.
The main form is the data entry point for a table that holds textual
data like names, notes and the...
|
by: sparks |
last post by:
I was using this to swap out a form with subforms on it by just making
a copy and tying each to copy of the same table.
subformV1 tblVisit1
subformV2 tblVisit2
etc
Select Case TabCtl0.Value...
|
by: 6afraidbecause789 |
last post by:
Think school - students - discipline interventions - misbehaviors -
staff for this one....On a mainform frmStudentInterventions, I have
linked a subform (sfrmMisbehaviors) with another subform...
|
by: c0l0nelFlagg |
last post by:
I need to display a main form with 48 identical subforms. 6 columns with
8 rows.
I set up a separate query for each subform, identical in structure and
underlying data except the criteria in...
|
by: sickenhoofer |
last post by:
I have a form w several subforms. The ultimate goal would be to click on a location, and have the data in the other subforms change to the data specific to that location.
For this form, there are...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |