473,399 Members | 2,146 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,399 software developers and data experts.

Creating custom forms with a form...

This is more of a structural question (me: newbie) as opposed to specific
coding. Please be patient...

I'm making a database for the small company I work for. It will be to add
and edit products listed on our e-commerce site.

I would like to have a customized form for each group of similar products
("drills, for instance, would be a similar group of products - although
there are further groups within the group of "drills"...). Every product
will share standard fields like "product number" and "price" but there are
many product specifications that are specific to only some products (hence
the "similar groups"). These specs includes "volts," "amps," "horsepower,"
etc.

So, I would like to be able to design these custom forms using an easy to
use form.

I was thinking of using a table listing all available specifications (volts,
amps, horsepower, etc.). I would then choose each specification (taken from
the "available specs" table) in a drop down menu. This would create a
*group* form. To clarify, some product groups would list "volts" and "amps,"
but not "horsepower" whereas others would have "horsepower" but not "volts"
or "amps."

The above example is an oversimplification. The number of available specs
could be in the 150-200 range, the number of product groups could be in the
300-400 range and the number of products could go as high as about 30,000.

Is it possible to define the fields in a form using a table, query or
report?

If someone could list some key words that I could look up in my book, "How
to do everything with Access 2002" or on the internet, that would be
excellent. I don't mind fiddling around with something, but I need a place
to start.

Unfortunately, my boss is not really inclined to hire someone to do this.
Moreover, I'd like to learn how to do it myself.

Thanks for any suggestions.

Regards,

Robin
Nov 12 '05 #1
3 1501
Robin,
Sounds like you want a bit of subclassing... you should read this
article and play around with the sample database before going too far.
Should save you a few headaches, I hope.

http://www.mvps.org/access/tables/tbl0013.htm

Your form may get a bit ugly, but I'm not sure how to get around that
part...
Nov 12 '05 #2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The way I'd do it would be to have a table of Product Attributes that
would be designed something like this:

ProductAttributes
ProductID Long - foreign key to the Products table
Attribute Text - name of the attribute, Watt, Amp, KW, etc.
AttributeValue Text - the actual value of the attribute

Data would look like this:

ProductID Attribute AttributeValue
1 Watt 25
2 Horse Power 350
1 Amps 5

To find an engine that has a horse power rating between 200 and 500
you'd create a query like this:

SELECT ProductName
FROM Products As P INNER JOIN ProductAttributes AS PA
ON P.ProductID = PA.ProductID
WHERE PA.Attribute = "Horse Power"
AND PA.AttributeValue Between "200" And "500"

You have to use quotes around the AttributeValue values 'cuz the
column data type is Text.

HTH,

MGFoster:::mgf
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBP9KnKIechKqOuFEgEQLhXgCg+4lCpbRncHAzNPy54O4RIE uUnQ4AoKTc
2TtWoJ9Hjpko7M7CVzk2O1NV
=7R9Y
-----END PGP SIGNATURE-----

Robin S. wrote:
This is more of a structural question (me: newbie) as opposed to specific
coding. Please be patient...

I'm making a database for the small company I work for. It will be to add
and edit products listed on our e-commerce site.

I would like to have a customized form for each group of similar products
("drills, for instance, would be a similar group of products - although
there are further groups within the group of "drills"...). Every product
will share standard fields like "product number" and "price" but there are
many product specifications that are specific to only some products (hence
the "similar groups"). These specs includes "volts," "amps," "horsepower,"
etc.

So, I would like to be able to design these custom forms using an easy to
use form.

I was thinking of using a table listing all available specifications (volts,
amps, horsepower, etc.). I would then choose each specification (taken from
the "available specs" table) in a drop down menu. This would create a
*group* form. To clarify, some product groups would list "volts" and "amps,"
but not "horsepower" whereas others would have "horsepower" but not "volts"
or "amps."

The above example is an oversimplification. The number of available specs
could be in the 150-200 range, the number of product groups could be in the
300-400 range and the number of products could go as high as about 30,000.

Is it possible to define the fields in a form using a table, query or
report?

If someone could list some key words that I could look up in my book, "How
to do everything with Access 2002" or on the internet, that would be
excellent. I don't mind fiddling around with something, but I need a place
to start.

Unfortunately, my boss is not really inclined to hire someone to do this.
Moreover, I'd like to learn how to do it myself.

Thanks for any suggestions.

Regards,

Robin


Nov 12 '05 #3
Pieter and MGFoster,

I don't think I made myself clear (my question probably got lost in a sea of
extraneousness...)

I need to define the fields of a form, using another form. This is the end
goal. The available fields need to be stored (I'd assume in a table) and be
available for selection.

The real issue is that I don't want to have to go into a form and manually
reconfigure it. Perhaps I could get a macro to copy a previously created
template form, rename it and define which fields were to be used, but that
seems like a lot of work....

Thanks for your answers though. Although they didn't answer my question,
they did provide further insight into the whole design problem.

Thanks again.

Regards,

Robin
Nov 12 '05 #4

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

Similar topics

2
by: Matthew Clubb | last post by:
Hi, I need help developing an expanding form I've decided that a use of PHP, Mysql and Javascript is the best platform for creating a selection of database interfaces which I'm trying to build...
2
by: SammyBar | last post by:
Hi, I'm trying to bind a custom collection class to a data grid, following the guidelines from the article http://msdn.microsoft.com/msdnmag/issues/05/08/CollectionsandDataBinding/default.aspx....
1
by: Robert Neville | last post by:
I am having some trouble with some old code revolving around custom form navigation buttons. My main form has a sub-form with these custom navigation buttons. In other words, the code should be...
2
by: Alvo von Cossel I | last post by:
hi, i have created many apps using the .net objects e.g. textbox, toolstrip. but i have decided that i would like to go further with my c# studies and learn how to write my own objects and...
2
by: AMDRIT | last post by:
Hello everyone, I have created a custom component and one of its properties is a class object with it's own properties. During runtime, I can assign values to the class object properties just...
10
by: Jake Forson | last post by:
Hi there, I'd like to re-create a form given only its resource file. I was going to simply read the resource file and re-create the "Form" object and all its controls as found in this file...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
5
by: Doc John | last post by:
I need to create several Windows Forms and I'm thinking of creating a base Form from which I can derive all Forms. Is it possible to include something in that Base Form so that all Forms I create...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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,...

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.