473,387 Members | 1,379 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.

Multi-Use Forms

FireMedic
In my current project I would prefer to save space by reusing an equipment inventory form to display, edit and enter data for several different categories of equipment. Data is stored in several tables with some variation in number of fields and data types.

Essentially I know how to set RecourdSource through VBA but am not sure of the best way to set corresponding control labels and data types etc.

For that matter is this worth the trouble or am I better off using multiple forms as subforms and setting their visible property according to the category button that's clicked? We're talking about 10 different but very similar forms.

ie: Apparatus (Pumpers, Ambulances etc., Fire Equipment, Medical Equipment, etc.

Thanks for any help or suggestions
Mar 4 '07 #1
4 1702
ADezii
8,834 Expert 8TB
In my current project I would prefer to save space by reusing an equipment inventory form to display, edit and enter data for several different categories of equipment. Data is stored in several tables with some variation in number of fields and data types.

Essentially I know how to set RecourdSource through VBA but am not sure of the best way to set corresponding control labels and data types etc.

For that matter is this worth the trouble or am I better off using multiple forms as subforms and setting their visible property according to the category button that's clicked? We're talking about 10 different but very similar forms.

ie: Apparatus (Pumpers, Ambulances etc., Fire Equipment, Medical Equipment, etc.

Thanks for any help or suggestions
If the know how to set the RecordSource, you have 1/2 the problem solved. The other 1/2 would be to set the SourceObject Property of the Sub-Form Control in order to identify the new Source (Form) of the Sub-Form.
Expand|Select|Wrap|Line Numbers
  1. 'Change the Source (Form) for your Sub-Form
  2. Me![your Sub-Form name].SourceObject = "subfExpendedItems"
Mar 5 '07 #2
If the know how to set the RecordSource, you have 1/2 the problem solved. The other 1/2 would be to set the SourceObject Property of the Sub-Form Control in order to identify the new Source (Form) of the Sub-Form.
Expand|Select|Wrap|Line Numbers
  1. 'Change the Source (Form) for your Sub-Form
  2. Me![your Sub-Form name].SourceObject = "subfExpendedItems"
Aha!!
Thank you, that worked great.
I'm not as concerned with having a lot of near-duplicate forms in the Dbase as I am with having to load a pile of them at once and make them visible one at a time. I'm sure that would be a real drag on the speed of the app. Thanks again.
Mar 5 '07 #3
NeoPa
32,556 Expert Mod 16PB
Considering ADezii's experience with fire-prevention and departments, it's entirely appropriate that he found and helped with your problem :)
You could be in lots worse hands.
Mar 5 '07 #4
Considering ADezii's experience with fire-prevention and departments, it's entirely appropriate that he found and helped with your problem :)
You could be in lots worse hands.
Yes Indeed ... Like my own..Yikes... His assistance is much appreciated.
Mar 13 '07 #5

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

Similar topics

4
by: Frank Jona | last post by:
Intellisense with C# and a multi-file assembly is not working. With VB.NET it is working. Is there a fix availible? We're using VisualStudio 2003 Regards Frank
12
by: * ProteanThread * | last post by:
but depends upon the clique: ...
0
by: frankenberry | last post by:
I have multi-page tiff files. I need to extract individual frames from the multi-page tiffs and save them as single-page tiffs. 95% of the time I receive multi-page tiffs containing 1 or more black...
6
by: cody | last post by:
What are multi file assemblies good for? What are the advantages of using multiple assemblies (A.DLL+B.DLL) vs. a single multi file assembly (A.DLL+A.NETMODULE)?
6
by: Joe | last post by:
I have 2 multi-list boxes, 1 displays course categories based on a table called CATEGORIES. This table has 2 fields CATEGORY_ID, CATEGORY_NAME The other multi-list box displays courses based on...
4
by: mimmo | last post by:
Hi! I should convert the accented letters of a string in the correspondent letters not accented. But when I compile with -Wall it give me: warning: multi-character character constant Do the...
5
by: dkelly925 | last post by:
Is there a way to add an If Statement to the following code so if data in a field equals "x" it will launch one report and if it equals "y" it would open another report. Anyone know how to modify...
0
by: Sabri.Pllana | last post by:
We apologize if you receive multiple copies of this call for papers. *********************************************************************** 2008 International Workshop on Multi-Core Computing...
1
by: mknoll217 | last post by:
I am recieving this error from my code: The multi-part identifier "PAR.UniqueID" could not be bound. The multi-part identifier "Salary.UniqueID" could not be bound. The multi-part identifier...
4
by: =?Utf-8?B?SGVucmlrIFNjaG1pZA==?= | last post by:
Hi, consider the attached code. Serializing the multi-dimensional array takes about 36s vs. 0.36s for the single-dimensional array. Initializing the multi-dimensional array takes about 4s...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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...

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.