473,791 Members | 2,949 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating a Subform

I am using Access 2003 and am having difficulty creating a subform that
will save records associated with a particular parent record....

The error message I receive pertains to indexes, relationships, etc...

Thanks!

Sep 5 '06 #1
4 2545

jmarr02s wrote:
I am using Access 2003 and am having difficulty creating a subform that
will save records associated with a particular parent record....

The error message I receive pertains to indexes, relationships, etc...

Thanks!
You have your main form done, right?
Is there a field in the table/query your subform is based on that links
it to the other (parent) table? This should be set in the relationships
window. Then once you create the subform, drop it into the main form
in design view. Set the LinkChild and LinkMaster fields and you should
be good to go.

Sep 5 '06 #2

pi********@hotm ail.com wrote:
jmarr02s wrote:
I am using Access 2003 and am having difficulty creating a subform that
will save records associated with a particular parent record....

The error message I receive pertains to indexes, relationships, etc...

Thanks!

You have your main form done, right?
Is there a field in the table/query your subform is based on that links
it to the other (parent) table? This should be set in the relationships
window. Then once you create the subform, drop it into the main form
in design view. Set the LinkChild and LinkMaster fields and you should
be good to go.
What are these LinkChild and LinkMaster fields ?

Sep 6 '06 #3
yes,

what are these LinkChild and LinkMaster fields?

They establish the relationship?.. ..

In my case each Faciliy Name has numerous Locations associated with
it.......

jmarr02s


jmarr02s wrote:
pi********@hotm ail.com wrote:
jmarr02s wrote:
I am using Access 2003 and am having difficulty creating a subform that
will save records associated with a particular parent record....
>
The error message I receive pertains to indexes, relationships, etc...
>
Thanks!
You have your main form done, right?
Is there a field in the table/query your subform is based on that links
it to the other (parent) table? This should be set in the relationships
window. Then once you create the subform, drop it into the main form
in design view. Set the LinkChild and LinkMaster fields and you should
be good to go.

What are these LinkChild and LinkMaster fields ?
Sep 6 '06 #4
If you establish a relationship between the two tables in the
Relationships window, the forms you build inherit the relationships.
Join the two forms on the field in common. If they don't have one,
then there's your problem. Tear apart Northwind and look at all the
forms with subforms. They wrote the software, so they should know how
to provide good examples.

Sep 6 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3913
by: Bruno Luis | last post by:
Hello I'm using A97 and i'm having some trouble with creating a recordset with data from two different databases. I connect to a remote database and make this data the default source for my continuous form (Set me.recordset = rs). The problem is: one of the fields of the remote database is a foreign key (two digit number), and the table with the correspondence is in my local database... i have no way of altering the remote database....
4
1872
by: tlaker10 | last post by:
Access 2000- my form has fields for “name”, “arrival”, “departure” and “site nbr”. Can I make a subform under “name” that keeps a history of all previous entries to arrival/departure/site nbr so that when the main form is changed, the new information is ADDED to the subform? Thanks *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
4
2121
by: | last post by:
This is blowing my mind because I thought this setup was working.... How is a new record generated in the table of a Child subform whenever a new record is generated in the table of the Master form - even though NO Child field data are entered? There's no problem if at least one of the Child's subform fields is entered. But if instead a command button is clicked in the Child's subform to open yet another form and create records in...
5
2304
by: keith | last post by:
This may seem simple, but I'm having a bit of trouble figuring out exactly how to do it. I'm accessing a database through an ODBC link, and I have a query that returns only jobs completed that day (it's automatically generated). 1 user may finish 10, 20, or 50 jobs a day, but there can be at least 20-50 users per day, and they're always going to be different. The users aren't going to return, or if they do, it's always going to be under...
7
6787
by: ppywong | last post by:
Hi, hopefully people can help: I am creating a rather simple database for a kids holiday camp. I have two main tables: tblLData (Leaders info) and tblKData (kids info). What I have done is using a Query, combined two fields of the each table into one (Year Group & Group into GroupName). Using these fields, I have made a form for the Leaders so that when they input the Year Group they are in charge with and the specific group, a subform...
4
3515
by: aflat362 | last post by:
If you look at this page on relational database design: http://r937.com/relational.html And scroll down to the "Many-to-Many Relationships" Section you will see a common database structure. I can not find a simple way to create forms and reports in Access that allow you to enter and display data in a structure such as this.
3
1793
by: solargovind | last post by:
Hi, I am New to this forum. I need steps that i do in creating subform. In main form, i have one table fields like vendor,account,due amount,balance amount and Requisition_id which is autonumber field. I tried to create subform by using table or that table's form which are having autonumber field and this is to be linked with Mainform autonumber field(requisition_id). But the following errors comes.
4
2050
by: rczuba | last post by:
Problem: Creating a Default Value for a field in a subform when a field in the subform & form match. I'm trying to create a payroll database for a small home business that I have that has had (and hopefully will continue to have) lots of growth. I have created a Transaction table to hold the hours, date, location of work (as the employees work at various locations), pay rate, and employee id. the employee id field has a one-to-many...
2
1475
by: Craig | last post by:
I am trying to create a form that shows quote info, but also has a subform that lists all keywords and allows you to select multiple keywords to associate with that quote. I have never done a subform before and am struggling a little with it as there is an element of indirection involved. Any pointers would be greatly appreciated. A summary of my DB so far is:
0
9669
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9515
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10207
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10155
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9995
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9029
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.