473,473 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Data Entry on tabbed forms

5 New Member
Hi
I am trying to set up a data entry function that needs to add records to several tables. The data can be logically separated and I have set up a tab for each collection of data - the problem I have is that I need to be able to change the 'recordsource' for each tab. Any suggestion son how to achieve this?

Thanks
Oct 18 '06 #1
3 1900
jimatqsi
1,271 Recognized Expert Top Contributor
Beagles,
You're in luck, this is easy. What you do is to make a separate form for each record source. These will be subforms. The "master" form will have a heading and the tabs for each subform. All you need to do then is to drag a subform onto the tab it belongs on.

You'll need to specify a parent/child linkage on the data tab of the properties for the subform.

I just did a bill-of-materials inventory system and I used this approach for the inventory maintenance program. The master form has the Item number and description, and then I have tabs and subforms for the cost/price info, bill-of-materials definition, on hand counts at each warehouse, history, etc....

I think you'll find this to be incredibly easy, but of course the first time is always a challenge.

Jim
Oct 19 '06 #2
beagles
5 New Member
Hi Jim
Thanks for the suggestion. I am having a few problems getting it to work - such as how do I get the 'master form' to display on each tab - this will contain the heading information 9in you case I suspect part details) for all the tabs.

Cheers
Oct 19 '06 #3
jimatqsi
1,271 Recognized Expert Top Contributor
It's like this. Let's say you have an Inventory Master table (Item#, Item Descrip, cost, price, and unit of measure) and a Inventory History Table(Item#, date, type of activity, and quantity), and an Inventory Warehouse table (Item#, warehouse number, units on hand)

Make 3 forms, one for each of those tables. The Inventory Master form will be a single form view (one item at a time), and the other two forms will be continuous view. Put the text boxes for the Inventory Master form in the heading of that form. The detail will start out empty.

Don't bother to put Item number on the two other forms, and put all the other fields in the detail area of these forms. Don't bother with heading and footer on those forms until you're an old hand at this type of forms-within-a-form form.

The Inventory history and warehouse forms will have many different items shown at the same time, because they're continuous forms and you're not asking for an item number. You've simply specified the table or query they're bound to, so the data for many rows appears there.

Now, on the Master form, add your tabs to the detail area. Name one tab History, and one tab Warehouse. Then, drag the History form to the History tab (in Design View of course) and drag the Warehouse form to the Warehouse tab.

You will have to set up the parent/child linkage (parent will be Item Number in the Master file and child will be Item number in the History or Warehouse files).

The Master data appears in the heading of your Master form. No need for any of that table's data to appear in the tabbed sub-forms. The History table data appears on the History tab, and since you have linked it by Item number, you will see only the data for one Item (the same Item you selected in the Heading area). Ditto the Warehouse tab ... if you have 3 warehouses with on hand for that item, you'll have 3 rows appearing in the Warehouse tab.

Get the 3 forms works independently, then move the 2 subforms to the correct tab area on the Master form. You'll be amazed at how simple it is when you see it work.

Good luck.
Jim


Hi Jim
Thanks for the suggestion. I am having a few problems getting it to work - such as how do I get the 'master form' to display on each tab - this will contain the heading information 9in you case I suspect part details) for all the tabs.

Cheers
Oct 19 '06 #4

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

Similar topics

3
by: Saket Mundra | last post by:
I have multiple web forms in my application. The user after logging on is directed to form1 where he enters information desired. Once finished he is directed to form2 and the same procedure goes on...
1
by: Angus Lepper | last post by:
I'm writing a stock ticker for a stock market simulation, and can load the data into the xmlreader in the first place, but can't figure out how to refresh/update the data in it. Any ideas? Code:...
0
by: bpo_ccs | last post by:
We are into BPO and Software development business for past six and half years. We are looking for the following any kind of business from your end. Back Office Process Data Entry, Large Volume...
4
by: Martin | last post by:
Hi all! As a preparation of a conversion from VB6 to VB2005 I'm playing around with VB2005. One of the first things that strike me is the user-interface. In all documentation Microsoft keeps...
2
by: gmccallum | last post by:
I have a data entry screen using controls bound through a bindingSource, TableAdaptor and a BindingNavigator to move through the records. When I have an data entry error (such as Null for a value)...
1
by: BarkersIT | last post by:
Hello, i'm pretty inexperienced with Access so this may be obvious to someone. I hope it is. I have been writing a database at work, I started with a few tables and then used the form wizard to...
1
by: bbatson | last post by:
Hello, I've recently created a tabbed form. The forms within the tabbed form have command buttons that create reports based on queries that are driven by the forms (based on the !! setup). The...
2
by: PTMech | last post by:
I have a tabbed subform (data sheet view) for which one of the controls is a combo box. It is based on a query that needs to be filtered by the same field data linking the main and sub forms. I...
3
by: OzNet | last post by:
Hi I have a main form and want to put two subforms on a tabbed control (on the same tab) Subform 1 will display data if it corresponds with the data on the main form. When this is true, subform...
0
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...
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...
1
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.