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 3 3431
"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
"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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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:...
|
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...
|
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...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: linyimin |
last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
|
by: kcodez |
last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: DJRhino1175 |
last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this -
If...
|
by: Rina0 |
last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
|
by: DJRhino |
last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer)
If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _
310030356 Or 310030359 Or 310030362 Or...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
| |