Another Newby Question - Linking Multiple Rows To One Form

Jun 9, 2005

I have this form which shows an order.... linked to this order are the client, the principal company, and the company that carries out the order. The information for these three companies are all stored in one table (since the information is very similar).

Tables look like:
tblOrder
- OrderID
- ClientID * linked to CompanyID
- PrincipalID * linked to CompanyID
- Contractor (company that carries out the order) * linked to CompanyID
- Date
- ...

tblCompany
- CompanyID
- CompanyName
- CompanyAddress
- ...

An example is for instance:
tblOrder
- 1, 1, 2, 3, 01-01-2005

tblCompany
- 1, Comp A, 200 A Lane, LA,
- 2, Comp B, 100 B Lane, NY
- 3, Comp C, 300 C Lane, SF

So, on the form it should read:

Date of contract: 01-01-2005
Client: Comp A - 200 A Lane, LA
Principal: Comp B - 100 B Lane, NY
Contractor: Comp C - 300 C Lane, SF

I understand how to make one link to a form... but how do I make three links from the same table?!?!?

Any help is appreciated!
Jazz

View Replies


ADVERTISEMENT

One Form Multiple Rows

Dec 31, 2004

I want to use a form that will put info from different drop down fields into the same column of a table.

Example:
(The information of the drop down boxes comes from table TopicNames)

Form: Caller
topic 1 topic 2 topic 3
wheelchair dancing Alzheimers behavior


to table "Topics"
wheelchair dancing
Alzheimers
Behavior

When I select the first topic the others change to the same

topic 1 topic 2 topic 3
wheelchair dancing wheelchair dancing wheelchair dancing

What do I need to do to make the form accept different input?

View 2 Replies View Related

Access Data In Multiple Rows In A Form

Feb 23, 2006

Hi guys ,

I'm very new to Access , but I need to do this and I can't figure it out. I have a form that looks like this :

http://img64.imageshack.us/img64/5566/formemail4qz.jpg (http://imageshack.us)


I'm trying to add up all the emails in a single string , but I can't access the records one after the other. The best I can do is display the currently selected record's adress ( The one with the black arrow in front ) . I tried browsing through the Fieldname.Value propertie ( in this case Me.Courriel.Value ) . I though I could cycle through all the Controls in the form , but Me.Controls.Count returns 3 , so I figured all the records must've been embedded into one control. Can anyone help me :( ?

(Sorry if this is a documented question , I've tried searching but couldn't find anything )

View 3 Replies View Related

Automatically Highlighting Multiple Rows In A Subquery On A Form

Dec 3, 2004

Hello!

I have a form with a subquery on it that shows all of the records that the form is based upon. The subquery and form are linked already, so whatever record I change to on the form, the subquery will follow. The records are chronologically ordered by date in ascending order. Depending on what day the form is on, I want to be able to highlight the rows/records of that particular week automatically in the subquery. I was just wondering what method I can use to do the highlighting/selecting of the records if there is such a thing. Hope I was clear...THANKS! =)


G

View 1 Replies View Related

Forms :: How To Create A Form That Inputs Multiple Rows

Mar 18, 2014

I would like to make a form that can insert more than one row at one time. Something like add first column, then ask the user how many of the second row they would like, then prompt them for what is in the second row then add the information for the rest of the columns and have a separate row for each of the second column. So every row with have the same first column, but from there have a different row for how ever many desired in second column. So lets i enter for the first column, ABC, then I wanted 3 rows with ABC, then prompts me for the rest of the information for each of those rows separately.Something looking like this, oh and it would be updating an already existing table.

ABC|asdf|asdf|hgaf
ABC|hs|hasd|auio
ABC|JKL|ASE|ASDF

EDIT: I would also like to know if it is possible so it does it in ranges and dont have to do it manually like you enter the first column then enter a range for the second column and a bunch of rows are made with each value in between the range that was specified.

View 1 Replies View Related

Forms :: Linking Multiple Tables To A Form?

Aug 26, 2014

problem is that i have 2 tables - Consolidated Orders, Customers.

Customers has 2 fields with a record inside one field with the clients name , but it also has an address in another field in the same table which i want to link to the name of the client because in my invoice i show the companies name and to the left of it i show their address.

i wish to link the two fields together so that when the name shows up, the address of the client will be to the left side .

View 2 Replies View Related

Linking Tables - Adding Rows

Aug 12, 2007

Hi,

I am trying to figure out how to link 2 tables to add rows based on corresponding data...below is an example...

First table contains general info...
row 1: column 1 = John Doe column 2 = Sports
row 2: coulmn 2 = Bob Smith column 2 = Music

Second table contains detailed info
column 1 = Sports
row 1= Football row 2 = Baseball row 3 = Soccer

Expected Result:

I would like multiple rows to show for each person linking all of detailed info...
row 1: column 1 = John Doe Column 2 = Football
row 2: column 1 = John Doe Column 2 = Soccer
row 3: column 1 = John Doe Column 2 = Baseball

Thanks,

View 7 Replies View Related

General :: Update Table Based On Form - Create Multiple Rows

Apr 15, 2014

I have a table with the following columns: Task, Visa type, time it takes to perform the task. There are several taks that are performed for all visa types. I want to create a form to enter data to the table in which for the field visa type I have a list box that can allow multiple values, however, I do not to create a single line with the task and on visa type all the types of visas selected. I want to create a line for each type of visa with the information introduced.

I don't know if this is possible, the reason for which I want for the form to create several rows depending on the visas types is because then I have a query that sums all the types of visas. Can this be possible? I don't want the people to introduce manually directly to the table the data and also that for the same taks they have to enter manually 50 rows with values. I want it to be more simple and easier.

View 3 Replies View Related

Modules & VBA :: End User Form - Linking Multiple Toggle Buttons

Mar 11, 2014

I have built a end user form with multiple toggle buttons with "Yes/No" properties. I am wanting to link the buttons together, so if all have been selected/pressed it will read "pass" in a text box, but if even one is not selected it will read "fail". I was successful with the programming for one but not sure how to link them.

View 2 Replies View Related

Automatically Filling Linking Fields For New Rows In Related Table?

Dec 18, 2012

OK, so I have a database with four tables (Well, more than that, but these are the relevant ones). It's to be used for recording the results of site inspections.

"Tbl_Typicals" is a list of products. We'll call its key "Typical_ID".
"Tbl_Actions" is a list of tests performed on each product. A given product may have many tests, but each test applies to only one product. Its key is "Action_ID". Each row contains a Typical_ID to link on.
"Tbl_PlantComponents" records which products are installed on which site. Its key is "Component_ID". Each row contains a Typical_ID to link on.

The fourth table ("Tbl_Results") contains the results of each test. As a result of the relationships above, each row is specific to a single Action which applies to a particular PlantComponent, which is to say, each row has both a Component_ID and an Action_ID to link on.

So, what I need is a query that pulls all of these together, such that I can use these details as the line items of a subform.

The main form displays the details of the PlantComponent, which is a simple query to relate line items in Tbl_PlantComponents with the data about that particular product in Tbl_Typicals. So far, so easy.

The subform shows the details of each test applicable to that product. It then has toggle buttons and a comment field to indicate the results of the test, the results of which should be stored as a line item in Tbl_Results.

The "easy" way is to use an append query to generate Tbl_Results in advance. This works, but it raises a variety of new issues.

The nice way would be to use a normal SELECT query and have Access fill in the necessary linking fields (the Action_ID and Component_ID) on each row automatically. Now for trivial examples, this is very easy - my main form query manages just that: I created a link between Tbl_PlantComponents and Tbl_Comments (which stores general comments about each PlantComponent which aren't related to a specific test) based on the Component_ID and that works fine - when I edit the Comments field, the row is automatically created and the linked ID field filled in for me.

However, when I need to do it with 2 links, it all falls apart. I've tried everything I can think of, including generating a single-column unique ID to use for the link, but Access just won't autofill for me. It just makes those fields on the form (or in the datasheet view of the query) non-editable because there's no associated row in Tbl_Results. If I create a matching row in Tbl_Results the query works fine, but that's not the point.

Implementation of the query is non-trivial because it requires two outer joins involving 3 tables - All from Tbl_Actions to matching in Tbl_Results, and All from Tbl_PlantComponents to matching in Tbl_Actions. This necessiates splitting the query into two - the first relates Tbl_PlantComponents, Tbl_Typicals and Tbl_Actions (returning one row for each Action for every Component), and the second performs a single outer join (using an AND) between the first query and Tbl_Results.

View 5 Replies View Related

Multiple Count Rows, Multiple Tables

Feb 19, 2008

I want to count based on 1 (same) field from each of two tables, based on if ID is in "X".

select a.groupid, count(a.id), count(b.id)
from ta a, tb b
where value in ('a','b','c')
group by a.groupid

Thats sort of the psuedocode but Im not getting the right results.

Any help would be appreciated.

View 6 Replies View Related

Newby Needs Help

Jan 24, 2007

Hello all, I've been reading through threads and there is alott of very good information on here, and seems to be some very knowladgeable people. So my question will probably be easy to answer.

I have a database of part serial numbers. I have created a query and a form to pull out all serial numbers for an inputed part number.

What I need it to do now is highlight any repeated serial numbers. How do I go about this?

I am thinking it will be a conditional format in the form itself to change font color but I dont know how to make it compare the values.

Any help would be great.

View 2 Replies View Related

Newby-Help With Relationships

Nov 4, 2004

Hi,

Seems like the more i get into reading the more confused I get in this basic
fundamental. I just need it explained really clear and basic, then hopefully it will enter the subconcious and I will be able to proceed :)

I am trying to build with Access XP in 2000 version a small program for a small medical office.

Patients are offerd various services and they have vists to take advnatage of them. They are charged for the services and run an account which is then paid, leaving a balance.

I want it all to be entered via forms for older non computer literate staff.

I have done the main table okay with all the info we will need and I have messed around with the other 3 tables I think I need.

1. To enter the Services offered a description and fee.
2. Enter when they visit and what services they have and fees with total
3. When they make a payment and balance owing.

They are one to many relationships, correct?

For a start am I on the right track ?

My confusion is setting up the relationships especially what field/s has to be linked to fields in the other tables to make it work.

Is there a rock solid rule where a certain field has to be in each table and has to be linked ?

These are the first fileds in my MAIN TABLE..

Patient ID Auto Number Primary
Medicare Number Can be blank
Last Name Text
First Name Text
Address Text

SERVICE TABLE (Primary?)

Service Type /Combo- Accuncture-Massage-Herbs-Vitamins-Other
Description of Service Text
Charge for Service Text

VISIT (Primary?)

Date and Time of Visit: In case 1+ visits in one day
Reason for Visit

ACCOUNT

Date
Service Charges
Payments
Balance

I know it is basic but I need to get over this block..

Thanks in anticipation of help

Oz

:confused:

View 2 Replies View Related

Newby Needs Help (desperately)

Jun 9, 2005

I have this form which shows the contents of a table... however, this table is linked to another table. How do I show the results of this linked table in the form?

Table_person
- Table_personID
- PersonFirstName
- PersonLastName
- EmployerID (linked to table below)

Table_Employer
- EmployerID
- FirmName
- ....

Now - the form should look like this:
First name: John
Last name: Doe
Firm: John Industries (selected in a dropdown box)

Table_Employer would contain
1 John Industries ...
2 Hank Industries ...

You catch my drift right?
How do I link these two tables in a form? How do I get the correct Firm to be selected in a dropdown box?

Any help is appreciated!!
Jazz

View 7 Replies View Related

Can Anyone Help An Access Newby ?

Jun 4, 2007

Hi All,

I am a complete novice with MS Access and am trying to find my way through our website database. ((URL address blocked: See forum rules)).

What I am trying to do is set up a search form to use offline so that it easier for us to trace animals that we have rescued.

I have the form all set up and it seems fine except that two of the fields I have on the form show numbers instead of the full details.

I think that what I need to do in those fields, is "point" them to another table in the DB so that they can "lookup" the relevant data in those tables and display the text instead of just the numbers.

I have tried searching through the MS Access Manual but to me, most of it may as well be written in a foreign language !

Hopefully t is a simple task that can be easily explained !

Regards

Paul

View 5 Replies View Related

Yes My Sql Newby Nuss Is Annoying =(

Nov 14, 2006

Heya, I know this is probably something simple as I know I have done sql problems like this before. However, I am wanting to show cars which have the same name but are of different colours (without duplicates), I figured I could just use a SELECT DISTINCT? However, when I do this it just brings up one car name and one colour when there are multiple colours.

SELECT DISTINCT car.carname ,car.colour
FROM cars;

I am guessing its because the SELECT DISTINCT statement is applied to both the name and colour.

If somebody could just tell me what I am doing wrong because I am guessing its something simple yet I am too frustrated to see what it is now!

Thanks =)

View 1 Replies View Related

Newby Link Price Fields

Feb 20, 2006

So I have a table "InventoryTracker", with one field lookup set to list (drop down) and the source is another table "inventory", field "Item". This works good and all the items that I enter in the "inventory" table are available from the "InventoryTracker" table. Both "inventory" and "InventoryTracker" have a field called price.

Heres what I want to have happen.
When I select a item from the drop down list menue in "InventoryTracker" it automatically fills in the "InventoryTracker" price based on the price from the "inventory" table (for the item with the same name, the one I just selected). This has to be fairly straitforward, I can do it in excell, but not acess.

Can anyone help a newby out?:rolleyes:

View 2 Replies View Related

Tables :: Linking 5 Tables As Unable To Exceed 255 Rows

Mar 18, 2013

I have been asked to design a database to replace our old excel sheet to log one of our customers server builds. It a four noded system and i require a seperate log for each node serial models of parts etc, qa checks.

I intitial started by just using one table but forgot the limit was 255 rows, i need about 600 - 700. So my plan is now to transfer to indivial table for each node. Then, a general table named Main for all my other details.

Although this seems simple, i now have the annoying task of being able to link them all together and produce a single PDF file to send to our customer whilst only entering our system serial number once to produce this.

My basic understanding will be to create a System Serial Number field in each table a link it via relationships, but if i produce a report with everything i need would it input my details for all four nodes? If so how would i set this up?

I will be splitting the database once completed and then making a ACCDE file for my techs to use.

View 4 Replies View Related

Selecting Multiple Rows

Jan 11, 2008

Hello everybody....

I was given a task by my boss to create an appraisal system for our department here in one of the local schools in the Philippines.

Anyway, what I created first a form from which all subjects being offered will be displayed. I did this by having a main form (bind to personal info table) and a subform that displays all the subjects (bind to subjects table). Then, the user will simply click on the appropriate rows bearings the subejct that the students wish to enrolled and when the save button is click, such will be saved into the enrol table.

My questions is, what control will I use to allow me to select multiple rows? and how will I be able to save selected rows into the enrol table?

Thanks in advance and more power...

~sirjhun

View 1 Replies View Related

Trying To Insert Multiple Rows

Nov 13, 2006

I'm trying to insert multiple rows into a table at once, but I'm having problems.

I've tried a syntax like this:

INSERT INTO [TABLE] ( [FIELD1], [FIELD2], [FIELD3] ) VALUES
(( '1', 'A', '1' ),( '2', 'B', '2' ));

..but with no success.


On a site I even found this other way, but with no success either...

INSERT INTO [TABLE]
SELECT '1', 'A', '1'
UNION ALL
SELECT '2', 'B', '2';

Is it possible to insert multiple rows and I'm just missing the syntax, or is it not possible with Access?

View 1 Replies View Related

Multiple Rows Per Record?

Oct 10, 2007

I have a table of products and a table of ordersEach product requires multiple processes to completeCan I make a query that will lookup the products in the orders table and show a list of all the processes that need to be done to complete all the products on order?The bit I dont get is how can a query return multiple rows for each product?

View 3 Replies View Related

Adding Multiple Rows At Once

Apr 21, 2006

Could somebody please help me! I am new to access and trying to create a database that brings together information from a number of different sources, into one large database.
I need to import a large amount of data from another access table and I would like to just cut and paste it into my table.
BUT, I can’t figure out how to add multiple rows at once to my existing table. The data that I am importing contains about 6,000 rows and 4 columns. Can anybody tell me how I can do this without having to manually create 6,000 rows, one at a time? I really do not want to do that. Thank you for your help.

View 2 Replies View Related

Insert Multiple Rows

Nov 6, 2006

I am trying to insert multiple rows to a table using the query

insert into rvp (rvp, rvp_name, controller_id)
values (1200, 'rvp1', 10), (1201, 'rvp2', 10)

But I am getting an error "Missing semicolon( at the end of SQL statement" and placing a semicolon at the end isn't helping either. I can insert a single row so column type or primary key isn't a problem.

Here's the table structure,

rvp - number (pk)
rvp_name - text
controller_id - number

Can someone please help me out.

View 3 Replies View Related

How Do I Delete Multiple Rows Or Records?

Apr 26, 2006

Is there a way to select several rows of records in a datasheet view of a table and delete all of the selected records?

Every time I try to delete more than one record at a time, I get the following message: "The Micorsoft Jet database engine stopped the process because you and another user are attempting to change the same data at the same time."

Then it will let me delete one record out of the selection.

I am the only one in that particular table at the time I am trying to delete the record.

Thanks in advance for your help...

View 3 Replies View Related

Update Queries On Multiple Rows

Mar 16, 2007

Hi,

Is it possible to update multiple rows in a Table at one time using Update Query?

Ta
Kasey

View 5 Replies View Related

Creating Rows In Multiple Tables

Nov 3, 2004

Hello:

I'm new to Access but not SQL, and am having difficulty coming up with a solution to the following problem:

I have one table for all Strings used in all other tables (to make Internationalization easier). The fields are: zId, zType, and zString. zId is an AutoNumber field. zType is a number which defines what type of string it is ( Item Name, Person Name, etc. ). zString is a text field with the actual text string (can be empty).

I have another table for Items, which have (among other things) Names (field name= zName). zName is actually a lookup into the Strings table and stores just the ID.

I want to create a form for people to enter a new Item. When creating a new item using this form, they will have to give it a Name, which will need to add a new entry into the Strings table with the appropriate type (ie, Item Name).

So, my question is "How to do the following..."
* on my form to enter Item Data, when a user goes to create a new Item, I must first create a new entry in the Strings table with the correct value for zType. Then, I must get the value for zId for this new entry and assign it to the zName field in the Items table for the new record that I am creating.


Any help is appreciated.

_C

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved