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

Displaying multiple records on a form..

I tried to ask this question several days ago, but I didn't explain my
application correctly.

Basically I want to have one record from table "A" and I want to display,
say, 5 records from table "B" which are specified by the one record from
table "A"... And all on the same form. I do not want to use a subform. The
record fields from table "B" must be displayed in text boxes with the record
fields from the single record from table "A".

The idea is that the form is a product enter form. Table "A" holds products.
Table "B" holds the different specifications which must be entered for each
product. By displaying specifications, I can guide the user to enter certain
specifications which are specific to a group of products. For instance, all
drills would have the specs: amps, volts, rpm, chuck size. Saws would have
specs like: horsepower, volts, rpm, blade size, table size.

It is a many-to-many relationship.

I just don't know how to pull more than one record from the same table on
the same form. I can design the form in Access if it would help explain my
idea (although, it would not actually function of course).

Thanks for any thoughts. I've been going over this in my mind for several
weeks now. You can tell this isn't my day job (week-end job).

Regards,

Robin
Nov 12 '05 #1
3 3482
"Robin S." <la*******@hotmail.com> wrote in
news:m0*******************@news20.bellglobal.com:
I tried to ask this question several days ago, but I didn't
explain my application correctly.

Basically I want to have one record from table "A" and I want
to display, say, 5 records from table "B" which are specified
by the one record from table "A"... And all on the same form.
I do not want to use a subform. The record fields from table
"B" must be displayed in text boxes with the record fields
from the single record from table "A".
Robin, whether or not you want to use a subform, a subform is the
correct way to design this application.

The idea is that the form is a product enter form. Table "A"
holds products. Table "B" holds the different specifications
which must be entered for each product. By displaying
specifications, I can guide the user to enter certain
specifications which are specific to a group of products. For
instance, all drills would have the specs: amps, volts, rpm,
chuck size. Saws would have specs like: horsepower, volts,
rpm, blade size, table size.

It is a many-to-many relationship.

I just don't know how to pull more than one record from the
same table on the same form. I can design the form in Access
if it would help explain my idea (although, it would not
actually function of course).
Nobody knows, because it's not really possible, except for using
a subform. You could try to set up a list box, but you'd then
have to write tons of code to duplicate what's built into a
subform control.

Thanks for any thoughts. I've been going over this in my mind
for several weeks now. You can tell this isn't my day job
(week-end job).

Regards,

Robin

Nov 12 '05 #2

"Bob Quintal" <bq******@generation.net> wrote in message
news:83******************************@news.teranew s.com...

Nobody knows, because it's not really possible, except for using
a subform. You could try to set up a list box, but you'd then
have to write tons of code to duplicate what's built into a
subform control.


Do you mean that what I want to do cannot be done, or that it cannot be done
without a subform? I didn't really mean I don't want it used so much as I
don't want the fields displayed in the one box as in a standard subform. I
need them displayed on the mainform... Whatever means possible.

Thanks again.

Regards,

Robin
Nov 12 '05 #3
the only way to show more than one record on a form is to make it
tabular or datasheet

the best way to show master (product) data and detail (specification)
data is to use a subform on a form

tblProduct
productId autokey (pk)
description

tblSpecification
productId (fk)
specificationId autokey (pk)
description

tblProduct
drill

tblSpecification
amps
volts
rpm
chuck size

create a columnar form for Product, showing productId, description
create a second tabular from for Specification, showing just
description

drag the specification form undo the product form (to create a
subform) or use
the subform wizard

your form will end up with

productId: 1 description: drill

description
amps
volts
rpm
chuck size

"Robin S." <la*******@hotmail.com> wrote in message news:<Gn*******************@news20.bellglobal.com> ...
"Bob Quintal" <bq******@generation.net> wrote in message
news:83******************************@news.teranew s.com...

Nobody knows, because it's not really possible, except for using
a subform. You could try to set up a list box, but you'd then
have to write tons of code to duplicate what's built into a
subform control.


Do you mean that what I want to do cannot be done, or that it cannot be done
without a subform? I didn't really mean I don't want it used so much as I
don't want the fields displayed in the one box as in a standard subform. I
need them displayed on the mainform... Whatever means possible.

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

0
by: Bill Brinkworth | last post by:
it's would be simple in Access, but seems to be harder in VB. I want to enter part of a word and search an access table, and display all instances of words containing those letters in a box (say a...
6
by: Matt K. | last post by:
Hi there, I have a form in an Access project that contains a subform which displays the results of a query of the style "select * from where = #a certain date#". In the main part of the form...
12
by: shank | last post by:
I'm trying to use online samples for submitting multiple records from ASP into a stored procedure. Failing! Through the below form, a user could be submitting many records at a time. I'm not...
5
by: Kaur | last post by:
Hi, I have been successful copying a vba code from one of your posts on how to copy and paste a record by declaring the desired fields that needs to be copied in form's declaration and creating two...
1
by: NumberCruncher | last post by:
Hi All, I am struggling with setting up my first system of tables, forms,and reports, and could use your help! I am setting up a database to keep track of the production of a produced item. The...
0
by: littlevikinggirl | last post by:
Hi, I have a table "Location" consisting of two fields - "Serial Number" and "Location". I want to be able to represent in graphic form the locations of multiple the items in that table. I...
4
4Him
by: 4Him | last post by:
First off, let me say this is a great site! I've just started working with Access and much of my success is from what I've read here! Background: I have a form, driven off a single table. Goal:...
2
by: jamieda | last post by:
I have a multiple items form displaying the contents of a table. It has a primary key and the records are ordered by this. I want to be able to manually select a record in the form and then...
8
by: jmarcrum | last post by:
Hello all, i have a continuous form that displays about 1000 records and opens when I click a button. When the form opens, the user has the option of checking a checkbox that is located beside...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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.