473,406 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

My form thinks I am adding records, I want to choose one to edit

I am new to access, so I figure this is an easy question to answer. I just can't find it on my own.

Background:

Two tables with a one to many relationship (irelevantField1 is a place holder, these fields are not relevant to posting, the number of fields represented is correct)

Parcels:
ParcelNo
irelevantField1
irelevantField2
irelevantField3

Properties:
TaxID
irelevantField1
ParcelNo
irelevantField2
irelevantField3

The forms I have enter the data in these and many other tables, I have grouped the tables based on typical workflow for finding and entering the data. The Properties' data is entered first, before the ParcelNo is known.

I want to add the ParcelNo to the Properties table from the same form I am entering the Parcels' data. The form as I have conceived it has a subform (wizard generated) that is based on the Properties table, I have included the TaxID and ParcelNo fields. I included the ParcelNo field just to verify that the parcel number that is entered at the top of the form is used in the subform (it fills in automatically). I then changed the TaxID box to a combo box based on the Properties.TaxID field, as a query in the row source property.

This is where what want to happen differs from what actually happens, it won't let me choose an existing parcel number because it creates a duplicate record. It is trying to create a NEW record in the Properties table, I want it to choose from the existing ones and put the appropriate number in the field. More than one Property will have the same ParcelNo.

Any input would be appreciated.
Nov 3 '06 #1
11 1967
NeoPa
32,556 Expert Mod 16PB
If you want to update more than one table on a form, you need to create an updatable query to base the form on.
Make sure the query is updatable before progressing as that is sometimes hard to achieve.
When you have this, you need to set the form's 'Data Entry' property to No. When set to Yes, it will continually add new records only.
Nov 3 '06 #2
If you want to update more than one table on a form, you need to create an updatable query to base the form on.
Make sure the query is updatable before progressing as that is sometimes hard to achieve.
When you have this, you need to set the form's 'Data Entry' property to No. When set to Yes, it will continually add new records only.
I don't think I understand what you wrote. I know what a query is and can read basic ones just fine in SQL veiw. What you wrote is just likely over my head. Permit me a follow up question. If I have a form based on just the TaxID and ParcelNo fields in the properties table, I can change the parcel number all I want and it will save to the table. Then I can switch to the next record and change it too.

In the Parcels form I want to be able to select all the properties that apply to a parcel from a list of all the properties, and I thought I could do this by making the form I just described a subform to the Parcels form.

Does this comment change your understanding of my problem, and if not is there a resource I can tap that will keep me from bugging people like yourself. A good book?
Nov 3 '06 #3
NeoPa
32,556 Expert Mod 16PB
Not a book, but someone posted a link on here recently which I've now added to my favourites.
It could help.
Unfortunately - I find it's at work that I've added it :(
Never mind, you may find it if you can search in this forum, otherwise someone is likely to post it in here for you sometime.
Nov 3 '06 #4
MMcCarthy
14,534 Expert Mod 8TB
I am new to access, so I figure this is an easy question to answer. I just can't find it on my own.

Background:

Two tables with a one to many relationship (irelevantField1 is a place holder, these fields are not relevant to posting, the number of fields represented is correct)

Parcels:
ParcelNo
irelevantField1
irelevantField2
irelevantField3

Properties:
TaxID
irelevantField1
ParcelNo
irelevantField2
irelevantField3

The forms I have enter the data in these and many other tables, I have grouped the tables based on typical workflow for finding and entering the data. The Properties' data is entered first, before the ParcelNo is known.

I want to add the ParcelNo to the Properties table from the same form I am entering the Parcels' data. The form as I have conceived it has a subform (wizard generated) that is based on the Properties table, I have included the TaxID and ParcelNo fields. I included the ParcelNo field just to verify that the parcel number that is entered at the top of the form is used in the subform (it fills in automatically). I then changed the TaxID box to a combo box based on the Properties.TaxID field, as a query in the row source property.

This is where what want to happen differs from what actually happens, it won't let me choose an existing parcel number because it creates a duplicate record. It is trying to create a NEW record in the Properties table, I want it to choose from the existing ones and put the appropriate number in the field. More than one Property will have the same ParcelNo.

Any input would be appreciated.
1. In the forms design view, click on the frame around the subform. Open the properties window and under the data tab look in the properties 'Link Child Fields' and 'Link Master Fields' . Are these both set to Parcel ID.

2. Close the form and in tables view go to the relationships window. You will find the icon on the toolbar. Click on the relationship between the two tables. Are all the cascade boxes ticked?
Nov 7 '06 #5
To mmcarthy,

All those things sheck out.

To neoPa, looked about a bit and didn't find it. I'll keep looking.
Nov 7 '06 #6
MMcCarthy
14,534 Expert Mod 8TB
OK

Open the Properties table in design view. Go to the ParcelNo field.

Go to the Indexed property and change it to Yes (Duplicates OK).

Make sure the Required property is set to Yes.
Nov 7 '06 #7
NeoPa
32,556 Expert Mod 16PB
Sorry Genalube - I'll try to remember to look it out tomorrow - I have it as a favourite at work so should be easy assuming I can find the time (& I remember at that time :duh: )
Nov 8 '06 #8
NeoPa
32,556 Expert Mod 16PB
MMcCarthy just posted it again.

( http://www.techonthenet.com/access/index.php ).
Nov 8 '06 #9
MMcCarthy
14,534 Expert Mod 8TB
Sorry Genalube - I'll try to remember to look it out tomorrow - I have it as a favourite at work so should be easy assuming I can find the time (& I remember at that time :duh: )
This what you're looking for Adrian.

http://www.techonthenet.com/access/index.php

Mary
Nov 8 '06 #10
NeoPa
32,556 Expert Mod 16PB
This what you're looking for Adrian.

http://www.techonthenet.com/access/index.php

Mary
lol - SNAP - Yes ;)
Nov 8 '06 #11
MMcCarthy
14,534 Expert Mod 8TB
lol - SNAP - Yes ;)
Both posted at 1.03 on the dot.

Think there's some psychic connection.

Mary
Nov 8 '06 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: P | last post by:
Hi, I have a form with several controls. One of them is initialized through VB in frm_current. I am using the frm_beforeupdate event to prompt users for saving changes. How can I make it so that...
15
by: Steve | last post by:
I have a form with about 25 fields. In the BeforeUpdate event of the form, I have code that sets the default value of each field to its current value. For a new record, I can put the focus in any...
1
by: RC | last post by:
I have an Access 2002 database with many tables and forms (but just to keep things simple, let's say the DB has one Table "Table1" and one Form "Form1"). I have managed to cobble together so much...
7
by: RC | last post by:
When I am adding records to a database and each record is unique by the Serial Number. I would like to step through my code adding records unless the Serial Number already exists in the database. ...
14
by: alwayshouston | last post by:
Hi All! I am working on this very small database and I am confused in the designing a simple form. I only have three tables in the database. First Table: tblExpense Columns: ExpenseID ;...
2
by: origin197511 | last post by:
Hello all... I'm having an issue with MSAccess 2000. I have a Form that holds records of my cartridge loads for a rifle and a subform that lists all groups that have been fired with that load. ...
6
by: allyn44 | last post by:
HI--what I am trying to do is 2 things: 1. Open a form in either data entry mode or edit mode depending on what task the user is performing 2. Cancel events tied to fields on the form if I am in...
8
by: fonzie | last post by:
Is it possible to have a data entry form where the information is stored in several different tables (5 or 6)? I have an inventory database where Table1 stores all of the data common to all...
17
by: radio1 | last post by:
Configuration: Access 2002 and SQL Server 2000 using a .ADP Project. I would VERY MUCH appreciate anyone's input into this problem I'm having. I have a form in Access that does not permit...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...
0
jinu1996
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.