473,785 Members | 2,424 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3507
"Robin S." <la*******@hotm ail.com> wrote in
news:m0******** ***********@new s20.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******@gener ation.net> wrote in message
news:83******** *************** *******@news.te ranews.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

tblSpecificatio n
productId (fk)
specificationId autokey (pk)
description

tblProduct
drill

tblSpecificatio n
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*******@hotm ail.com> wrote in message news:<Gn******* ************@ne ws20.bellglobal .com>...
"Bob Quintal" <bq******@gener ation.net> wrote in message
news:83******** *************** *******@news.te ranews.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
963
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 listbox). I can get one word in, but i can't make it go back and get the others and relist. Can you help? Here's what i have: Public Property word() As String Get Return m_Word End Get
6
4083
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 the user can change the date, which will force a requery in the subform to bring up records from the date selected. My question is this... The query in the subform is a very simple one, with only three fields being returned. In the interest of...
12
3012
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 getting any records inserted. For troubleshooting, I cut the form down to 1 textbox and when submitted it populated 5 rows of the same data. So I know I'm connected, but not getting the LOOP and NEXT correct? How do I set this up so many records can be...
5
13995
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 button "copy" and "paste". Works like magic. My problem is how can I copy multiple records and paste them at the same time. My data entry form has main form that has a Questionlist box of Questions. The second list box on the same form displays...
1
4784
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 item is a panel, with a specific texture. There are standard panels that are then produced in a limited number of specific textures. The number of panels/project varies, so I keep track of the actual number of panels per project with the count:...
0
1227
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 imported a Visio diagram into a form to overlay the serial numbers onto intending to write an If statement in each label box referring it to the correct record in the table but I am not having any luck. Should I be writing an If statement in the...
4
9813
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: To have multiple fields copied and pasted into multiple records with a single button click. Work Done: In the form I have multiple fields, but for my question let's just refer to FIELD 1 and FIELD 2. I would like to copy the value of FIELD 2 and...
2
3004
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 reference that record using VBA. However, I do not know how to create a recordset with that single record. I am using Access 2007. Thanks in advance.
8
4801
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 each record. The checkbox is labeled "Move" (for moving multiple records at a time to another year). Of course, the checkbox is set as a control "moveRecord" on a table that the query is pulling from. So if the user checks one record, then clicks to...
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10098
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9958
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8986
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7506
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6743
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5390
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5523
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4058
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 we have to send another system

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.