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

Tab Control - Sub forms - Link Data

I have a database that I'm using multiple forms to gather information into separate tables.

Ex. tblA, tblB, tblC, and tblD

I have frmA as the master form which collects on the information for all the tables. It does so by the Tab control I inserted along with frmB, frmC, and frmD.

I'm trying to link the fields ID, Company Name between all the tables and forms. So when I enter the information into frmA it populates the information into frmB, frmC, and frmD.

Thanks in advance for your help.
May 4 '10 #1
5 2329
NeoPa
32,556 Expert Mod 16PB
It's hard to know what you're actually asking here.

One thing I can say though, is that you will need to give some clues as to how these tables link together etc. We can deal with very general questions, but only at a very general level.
May 5 '10 #2
I have 4 tables: tblSponsorInformation, tblNC08Sponsor, tblNC10Sponsor, and tblFC11Sponsor.

tblSponsorInformation contains all the contact information information about a particular sponsor. Specifically - the fields ID (the primary key) and Company Name.

The other three tables consist of information that is specific to a particular event. For example, tbleNC10Sponsor has all the information relating to a National Conference - specifically a field with a drop down list of features available and features purchased to sponsor the conference.

I've created a master form for our sponsorship team to us and to avoid having information overload. On that form - I have all the information for the tblSponsorInformation on the left side. Ont he right side - I added a Tab Control box with three tabs. Each tab represent the three tables (tblNC08, tblNC10, tblFC11). I have tried adding the subform/subreport to the repective tabs. Two issues come up:

1) My drop down list for sponsorship features doesn't come through like it does when I just create a report. It's wanting the "value" and not allowing a drop down list.

2) When I add information to the form on the left side (linked to tblSponsorInformation) it does not add records to tblNC08Sponsor, tblNC10Sponsor, and tblFC11Sponsor.

I hopes that helps. In a nut shell I want to use one form with sub-forms to fill out the information need into my four tables.
May 5 '10 #3
NeoPa
32,556 Expert Mod 16PB
First let me apologise for the long delay. I admit I have struggled to understand what you're explaining and been unable to form a picture in my head of what you're about. I thought it only fair to answer what I can though. Maybe any confusion can be clarified from there.
Missionary2008:
1) My drop down list for sponsorship features doesn't come through like it does when I just create a report. It's wanting the "value" and not allowing a drop down list.
I don't know what you mean by come through. I don't know what happens when you create a report. I guess that somehow the ComboBox control you're referring to is not working as expected, but that's too little to be able to help you.
Missionary2008:2) When I add information to the form on the left side (linked to tblSponsorInformation) it does not add records to tblNC08Sponsor, tblNC10Sponsor, and tblFC11Sponsor.
This will always be true. Subforms don't create records for you. They may set the values for linked fields if properly set up, but that's about it.

However, the fact that you even mention it leads me to wonder if you have relationships, or joins, between the tables which are one-to-one possibly? I see no reason why that would be a good idea, but neither can I see your project. If that is the case than that would be pertinent information. We'd need to know this to be able to help you, and not guide you in a wrong direction.

It is possible, using code, to force a subform to create records for you triggered by creating a record in your main form. I cannot imagine a situation where it would be a recommended direction though. I'd need a better understanding of your thinking before guiding you that way.
May 11 '10 #4
NeoPa,

Sorry for the delay in responding, I spend some time taking your comments and trying to figure it out myself - and I did! thanks. sometimes I just need a little push.
May 23 '10 #5
NeoPa
32,556 Expert Mod 16PB
That's about the best result then. If I feed you answers then you won't learn too much. Finding them for yourself puts you in a much better position though. Well done :)
May 24 '10 #6

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

Similar topics

12
by: MLH | last post by:
I have created two forms: frmBrowseNegsMainform and frmBrowseNegsSubform. I put a subform control on the first of these. The SourceObject property for the subform control is, of course,...
3
by: Not Me | last post by:
Hi, Just trying to get my head around tab controls, is there anywhere which would describe the structure of how they work? I seem to be ok so far, being able to check which page I'm on etc......
0
by: Daimy | last post by:
I meet the same problem below, please help me! Thanks! //written by some one I have developed a windows forms user control, which I am going to host in Internet Explorer.. I am familiar...
2
by: Carolyn Vo | last post by:
I have been looking and looking but can't seem to find out how to get the row selected in a web control datagrid (NOT a web form datagrid!!!), and how to highlight the selected row. I'm sure this...
7
by: Jacky Luk | last post by:
Does anyone know of a downloadable Line ActiveX control which allows me to plot straight lines on a VC++.NET form? Thanks Jack
0
by: Neelima Godugu | last post by:
Hi All, I have developed a windows forms user control, which I am going to host in Internet Explorer.. I am familiar with the security settings requirement inorder to do the above. I have...
5
by: Paul Bromley | last post by:
Can someone give me a very simple example on how to do this? As an example I have a commaned button in a user control. Once this user control is placed on a form I want to be able to respond in the...
6
by: MLH | last post by:
I don't always get what I want when I invoke the following Me!MySubFormControl.Refresh from code running in the main form. Am I doing something wrong here? Someone suggested that I open the...
2
by: Budhi Saputra Prasetya | last post by:
Hi, I managed to create a Windows Form Control and put it on my ASP .NET page. I have done the suggestion that is provided by modifying the security settings. From the stack trace, I would...
0
by: Budhi Saputra Prasetya | last post by:
Hi, I still have the same problem with embedding Windows Control. I'll just requote what I posted last time: I managed to create a Windows Form Control and put it on my ASP .NET page. I...
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: 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
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,...
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...

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.