473,387 Members | 1,596 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,387 software developers and data experts.

Edit to subform making changes to main form on non-child field

Seth Schrock
2,965 Expert 2GB
I have a subform that has three fields that are titled the same as the main form, but two of them are for different things and the third is the Master/Child link field. However, when I change the SerialNumber field in the subform, it changes the SerialNumber field in the main form and vice versa. The SerialNumber field is not part of the master/child link so why the connection? There is nothing in any of the AfterUpdate events to make the change go across. I'm not sure where to look next.
Nov 13 '12 #1

✓ answered by TheSmileyCoder

Any chance your recordsource for the subform is a query in which you have selected the field from the main table and not the subtable by accident?

Its the only thing making sense based on what you information you have provided.

5 1390
TheSmileyCoder
2,322 Expert Mod 2GB
I must admit to not being sure either, based on your description. Maybe if you describe the tables involved in both main form and sub form.
Nov 13 '12 #2
Seth Schrock
2,965 Expert 2GB
The table behind the parent form is for computers. The table behind the subform is for the monitors. Each table has a SerialNumber field and a PurchaseDate Field, but otherwise the fields are totally different. They also each have their own auto number field as the PK with the monitor table (tblMonitor) having the FK field as the PK of the computer table (tblDevices). Not sure if there is any other information that you would need. I used to use SerialNumber as the PK until I found some devices that didn't have a serial number. So I had to create an autonumber field to do be the PK.
Nov 13 '12 #3
TheSmileyCoder
2,322 Expert Mod 2GB
Any chance your recordsource for the subform is a query in which you have selected the field from the main table and not the subtable by accident?

Its the only thing making sense based on what you information you have provided.
Nov 13 '12 #4
Seth Schrock
2,965 Expert 2GB
I did forget about the query in between the table and the form. And you were correct that it was pulling that field from the main form table not the subform table. Thanks so much. I was stumped.
Nov 13 '12 #5
TheSmileyCoder
2,322 Expert Mod 2GB
Your welcome. Best of luck with your project!
Nov 13 '12 #6

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

Similar topics

9
by: chris vettese | last post by:
On my subform I have a field in the footer that totals the value of a field. On the main form I have referenced this field. I'm using this field in a calculation on my main form. The problem...
1
by: Bill Strass | last post by:
Problem: Access main form/subform as front end to SQL Server backend. Add/edit via subforms work fine. Not so with main form. Set up a master-detail form-subform using two views linked from SQL...
2
by: TDIOwa | last post by:
I have a form (frmAppointment) with a subform on it (frmAppointmentsub1). I have placed a command button on the main form which calls the function below from the module. The purpose of this...
30
by: Shannan Casteel via AccessMonster.com | last post by:
I have a subform named "sbfrmParts" with a list of parts along with the quantity and price. I have used a text box in the subform's footer and set the control source to "=Sum(*)". I set the...
1
by: dBNovice | last post by:
Please help! I have 3 forms: Task, Subtask, Elements. Elements is a subform of Subtask and Subtask is a subform of Task. I am able to navigate from Task to Subform to Element and from Element to...
0
by: HumanJHawkins | last post by:
Hi all, I read other posts on this, but they offered alternate solutions... I am looking for how to simply do this: If I have a form with a subform in it, how can I programatically access the...
4
by: Savita23 | last post by:
Hi, I have a subform in datasheet layout embedded in the main form.I want to invoke a procedure on the double click of each record in the subform.Is there a away by which I can fire the double...
1
by: Bob Alston | last post by:
I have a system where many subforms are used. Often the size of the subform had to be larger than could be displayed without scrolling. I set the height of the subform to the typical height...
6
Fspinelli
by: Fspinelli | last post by:
I have a query by form set up. I coded and can get the fields on the form to clear by the click of a button, but how do I make the subform clear, too? The main form has a "Clear" button and in...
14
TheSmileyCoder
by: TheSmileyCoder | last post by:
I have noticed that when I resize the window of my main form, that any subforms that "fall" out of the visible area get closed. Now Access automatically reopens them if I expand the window again,...
0
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,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
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,...
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...

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.