Forms :: One Form 2 Tables?

Oct 28, 2013

I have

5 Tables

[Estimate]
[Invoice]
[Clients]
[SalesPersonID]
[AccountTerms]

2 Forms

[Invoice]
[Estimate]

At the moment, what I'm trying to do is have a form setup as our Estimates currently in use. I've created a Form and arranged as required to make said paperwork everything so far fine.

Now I tried adding a Combobox to select a client from the [ClientsTable] which is fine, and it will even fill in some text boxes with the relevant information, again perfect.I cannot add a new Client to the [ClientsTable] from this Estimate form, and in turn can only save a client to the [EstimatesTable] if matching fields exist, if these fields are missing, it is then blank.

Surely duplicating the client repeatedly into the [EstimateTable] is bad practise, yet I cannot get it to work any other way in this regard. Even id I do this I'm still stuck with the Combobox only referencing clients in the [ClientsTable] which means there is plenty of room of incorrect Client information.Now I understand this in part, but what I need to be able to do is pull up existing Clients from [ClientsTable] and be able to add new ones from the [EstimateForm]

I really don't want to have multiple forms for all the different Tables as this is inefficient and my staff will never understand what there doing.So how can I add multiple Sources to a form? I'm looking into Subforms but this still seems inefficient instead of just linking to existing tables?

View Replies


ADVERTISEMENT

Forms :: Update Two Tables From One Form

May 22, 2015

I wrote a database for my daughter's dance school. There are two tables, one for personal details, the other for exam results. The data is separated this way because when I was given it all, I got it from two people in an Excel file.

When I programmed it, I had the Primary Key in the Master table auto-generated (an Integer) which I also used as the Primary Key in the ExamResults table. All the data manipulation is handled in code by Event Procedures.This is the code to update the Master Table when a new pupil's details has been entered and the 'Submit' button on the form clicked:

Code:
Private Sub btnSubmit_Click()
On Error GoTo btnSubmit_Error
Dim curDatabase As Database
Dim rstNameAddress As Recordset

[code]....

The woman who uses it told me the other day that she can't update the exam results for any pupil she has put into the database since I gave it her - records of pupils entered by me are OK.When I checked the code I realised that when a new record is created, there isn't a corresponding one in ExamResults. when is the Primary Key first generated and how do I program the form to update the new pupil's details in the ExamResults form when the Master table is first written to?

View 12 Replies View Related

Forms :: 1 Form To Multiple Tables

Mar 25, 2013

I currently have 1 form linked to 1 table which data from another table is appended to for editing, re-appended to original table and then rows are deleted. However, this process will need to be done by 4 other users soon and I needed to know if I need to create 4 separate tables and 4 separate forms or is there another way to implement this? The append query has clauses that will display only a specific user data for editing, however, I do believe that if 1 user is in the editing table, then when 1 of the other 4 users attempt to run the query to append their data from the original table, they will get an error message that this table is already in use. I just need to know if there is a way to set up an alternative to re-creating 4 tables/4 forms again.

View 4 Replies View Related

Forms :: Two Tables One Form For Different Fields

Oct 24, 2014

Can have one form calling two tables for the different fields?

View 2 Replies View Related

Forms :: Form That Combines Two Tables With Photo

Oct 13, 2014

I'm trying to create a many to many table (which I know how to do). But this is a little complicated.

I have several photos that are part of my database, so I have them in their own table which contains:

ID
CallName
PhotoType
Source

Computer Link (to where photos are stored on my hard drive)

The photo type comes from another table, one of the types is People.

So I want to have a many to many table so I can connect people photos to places where they live. That's pretty easy, you just put foreign keys for the photo CallName and for the Place Name.

However, I want the person's photo to show up also (in a container I will put on the form). In order to do this, I need to have a field for computer link that is automatically populated based on which Photo Call Name I choose. Can you do that in a many to many form? How?

View 1 Replies View Related

Forms :: Creating A Form From Multiple Tables

Aug 20, 2013

I am trying to create an input form for input to tables.There is a main TblContacts table with fields such as: LastName, FirstName, Address, etc. There are also ID fields for the Company and Country and joins to the Company and Country tables, each with just ID and name fields.I want to have all the fields from the TblContacts table and the Name fields from the Company and Country tables on the form. I want to be able to select the Name fields from the Company and Country tables from combo boxes and for these also to populate the Company and Country ID fields (from the TblContacts table).

To create the form, I selected Create Form whilst the TblContacts was open. Then, I added the combo boxes pulling the names from the Company and Country tables.My problem is that the selection of the Company and Country names above is NOT populating the Company and Country ID fields on the form (taken from the TblContacts table. I have checked in relationships that the joins have been created.

View 7 Replies View Related

Forms :: Unbound Form To Update Two Tables

Jul 31, 2015

I have two tables that I want to update from data in an unbound form. How do I capture the ID of the new record created in table 1 in order to write it to a field in the new record being created in table 2.

Table 1
id
f1
f2
f3 and so on

Table 2
ID
Table 1 id
F2
F3 and so on

View 5 Replies View Related

Forms :: Autofill Form Saving To Tables?

Oct 17, 2013

What I'm trying to do is create a database system for my company, it's not overally complex in the sense it's just managing the estimates and invoices we do.

[Tables]

SalesPersonID
Clients
AccountTerms
Estimate
Invoice
WorkSheet

Now I've tried to break the data down as sensibly as possible.

What i'm having trouble with is I have created a autofill combo box to fill out text boxes with information from the Clients table, the idea is that the client can be added via the Estimate form or pulled up from the record depending on the situation. Now the problem I have is one;

I cannot enter data via the form

and two

When you flick through the forms only the combobox information is staying put, either the text field is empty or incorrect.

I'm pretty it's to do with [Data Source] but I can't seem to get it to work. How to make it possible to pull up clients when typing an estimate OR be able to add a new client via the same fields. Secondly, when the Form is review the autofill text field display the clients details.

The link : [URL] ....

View 3 Replies View Related

Forms :: Form Connecting To Multiple Tables

Oct 6, 2014

I want to create a form that has several parts(5), that will direct to 5 different tables(they will all be connected). I want to keep it as one form because if I'm successful it will be easier for people to transition from a paper to electronic form(if the format is similar). I don't want any subforms, I just want to be able to direct the information to different tables.

View 1 Replies View Related

Forms :: Updating Multiple Tables With One Form?

Jun 11, 2013

I have data that needs to be entered. It is the same data across 3 tables but only for the first three columns, then it is different. I can create a form for one of these but not for all three.

View 4 Replies View Related

Forms :: Linking Several Tables On Tabbed Form?

Oct 6, 2013

I want to have a navigation Form where the top tab will show the main Customer, and in the same tab also a sub table with chosen contact information.

With that top tab chosen, I want to chose left tab wich shall open (in this example) the phone number of that contact.

I provide a PDF with a few pictures of tables, relationships and how I want the forms to look.

View 5 Replies View Related

Forms :: Form Entry With Multiple Tables?

Jul 19, 2013

I am currently working on a form that involves several linked tables. Since our personnel got so used to a certain form format, I have scanned the form and imported into an access form as a background and have laid corresponding fields on top.(I have attached a snapshot of the form). This works great for a view only form, but I can't seem to add/edit records using this form because of the table relationship. I have done some research, and found that one way to get around this problem is to use subforms, but that would kill the form format. Another way I have seen (which I am not sure how to do) is to have a temporary field and once you hit the submit button it will then fill out the tables.

View 1 Replies View Related

Forms :: Search Form For Multiple Tables

Jun 30, 2015

I am fairly new to Access and am having some trouble creating a search form. I have numerous tables, which contain information regarding clients and contracts, that are all connected by relationships. I would like to create a form in which I can type in the name of the client and pull up all the information regarding it from the various tables (i.e. when it was signed, the amount, and etc).

View 2 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

Forms :: Search And Compare Value From Three Tables In A Form

Oct 18, 2014

I have three tables: Table A, Table B and Table C

Fields of Table A: Truck No, Capacity
Fields of Table B: Consignee ID, Capacity A, Capacity B and
Capacity C
Fields of Table C: Consignee ID, Final Rate

Input form is based on Table C:

1-I select Truck No using a combo box and it shows the Capacity from Table A using DLookup.
2- I enter the id no. in the field of Consignee ID and it returns the values of Capacity A, Capacity B and Capacity C using DLookup from Table B.

So I have to write manually one final rate in the field of Final Rate in the form.So I want:When I enter id no. in the field of Consignee ID, it matches with the Capacity in Table A and shows the matched result only in the field of Final Rate of Table C.

View 14 Replies View Related

Forms :: Command Buttons On Form That Go To Two Separate Tables

Jun 18, 2013

I have two command add buttons on my form that go to two separate tables. I also have a go to next record button as well. Is there a way that I can put all three commands under one command button? They are already coded in VBA and all work properly individually, I just want to make it smoother if possible ..

View 3 Replies View Related

Forms :: Simplified Form - New Record Only With 3 Interconnected Tables?

Mar 8, 2013

I have a number of tables and at least 20 fields in each table, but I've simplified if for these purposes.

In my simple version, I have 1 forms and 2 sub-forms each related by a Master-ID. My forms/sub-forms all tie directly to three tables of data. see the attached. When I go to add data - all works well.

But now I want to make a simple version of this form - that only allows the user to enter new data into the 1 form with 2 sub-forms. And then updates all three tables.

View 7 Replies View Related

Forms :: How To Join Tables Using A Link Table In A Form

Mar 10, 2013

I have been asked to maintain a directory for our local Scout district. It's currently in a spreadsheet, but is crying out to be a database.I have created a "group" table, this lists all the groups in the district.I have a 2nd table called "people" this holds details of all the people in the district.As some people can have a role in multiple groups, I have created a 3rd table called "link", this is to link the people to groups.

Having read various different posts on sub forms, I am still at a loss on how to create a form / subform to populate the link table.My initial thoughts were to have a combo box on the main form, listing the people and then have a list of groups on the sub form (the are only 24). I would have a check box next to each group and if checked, it mean that the person selected in the combo is associated with that group.However my issue is that the tick box would be a "yes/no" field and the entry in the link table needs to be a number.

View 8 Replies View Related

Forms :: Unbound Form - Adding Records To Two Tables?

Apr 22, 2013

i have an unbound form with the following code which works as it should

Code:
Dim rst As DAO.Recordset
Set rst = CurrentDb.OpenRecordset("tbl_Courses", dbOpenDynaset)
With rst
.AddNew
rst!DateCreated = DateCreated
rst!Originator = Originator

[code]....

I also need to add other text fields from the unbound form to another table but can't seem to work out how to do it.

View 6 Replies View Related

Forms :: Entering Data Into Related Tables Using A Form

Sep 12, 2013

I have a form within my database in which the user will enter data which will go into 2 separate tables. These 2 tables (Job and Client) are related. At the moment I have a subform in which the user enters Job information, and the main form where the user will enter client information.

The problem being is that the 2 sets of data do not associate themselves with each other, despite being related (The Client will be related to a job number. A client can have many jobs but a job can only have one client etc). It has to be done manually in the table which is not ideal as the DB will be split and rolled out to users via Access Runtime. I have been working on this DB for a while now and the problem is most likely right in front of me but I cannot see it!

View 4 Replies View Related

Forms :: Value List Values In Form Not Saved In Tables

Feb 11, 2015

I created a form with subforms that are all linked to their own tables. Values that are entered in to the form (i.e. just numbers or names) all save into the tables as I would expect; HOWEVER, all of my value lists (0,1,2 or 1-5) do not. I can change the values in the forms and as long as I am toggling between them they appear in the form but they are not populating the tables.

Other details. They are defined as numbers in the property table, I did change them to a value list in the form properties and did assign values to the property list.

I looked through some other threads that seemed similar but the solutions didn't apply. Because the straight up data entry saves, I feel like it is something specific to me creating those value lists...

View 2 Replies View Related

Forms :: Assemble Data From 3 Tables And A Form To A New Record

Sep 13, 2013

My DB tracks sponsors for a non-profit organization. Demographics, sponsorship levels, tickets to events, payments, members who recruited sponsors, etc.

I have a form EditSponsors which opens from a query that draws from 3 tables SponsorshipDemographics (PK SponsorID), SponsorshipLevels (PK SponsorLevelID)and Members (PK MemberID).

I have placed a command button on the form that opens a new form PostPayment which is intended to post a payment and make the necessary changes to the sponsor’s profile.

I want to load the new entered data form PostPayment with selected fields from EditSponsors, then create a new record in the table Payments that looks like this:

PaymentID (PK, Auto)
SponsorID
SponsorLevelID
MemberID
Check#, CheckDate, PostDate, Amount (data entry)

My Problem: The 3 PK’s from the other tables do not get entered into the new record in Payments.

View 1 Replies View Related

Forms :: Continuous Form Not Updating Tables Correctly

Feb 27, 2015

I have a continuous form that is using a select query to populate all of the bound controls. The drop downs and text boxes are displaying the values from the correct places. But, the form is not updating in the places I expected.

The select query that is being used to populate, combines information from 3 tables.'TimeEntries' table (the one that I want records to be updated in). This holds employee ID, and numeric values for Project Name and Project Task.

'ProjectInfo' table (nothing should be updated here). This table holds other details about the project (ex. Project Name) that is used to populate a combo box.
'ProjectTasks' table (nothing should be updated here either). This table holds details about project task (ex. Task Description) that is used to populate a combo box.

The issue I am having is that when records are updated on the form, they are adding records to all 3 tables that are a part of the query, instead of just updating the time entries table.

Record Source (form) = Select Query "EmployeeTimeEntry"

View 14 Replies View Related

Forms :: Using A Form To Enter Data Across Related Tables

Mar 3, 2014

I have a database I made to store a list of users and information about each user.

I have a UserDetail table, languages table, previous experience table, current experience table.

UserDetail table as follows:
UserID (PK)
First Name
Last Name
Full Name (calculated)
Department (using a multi select combo box. There are 3 departments and some people are in both).

I need to do the same thing on each table and each table is very similar so I'll just list one. This is the Previous Experience table:

PreviousXPID (PK)
Previous experience (e.g. IT, Marketing, Chemistry)

I have three junction tables. One for each Previous Experience, current experience and language table. The Previous experience junction table has:

ID (PK)
UserID
PreviousXPID

I created a relationship between the userdetail table and the junction table then the junction table to the Previous Experience table.

Now what I'd like to be able to do is edit people to add previous experience, current experience and languages to each. I already have a form that lets me add a new user to the database. It's just based on the UserDetails table. If I could have a way (perhaps using 3 multi select list boxes. One box for previous experience, one for current experience and one for languages) on that form to add the other details to that person, that would be ideal. I'd like to create a new user. E.g. Joe Bloggs in department 1 who speaks Dutch, used to have Marketing, Chemistry and aeronautical experience and now works in IT.

I can create the new user by putting last first/last name and selecting the department. But to add experience or languages, I have to go into that junction table and add the numbers myself. e.g. user 1, has experience 1,3,4 and 5. I'd like to see the name that relates to the ID and be able to select it from the list in the table I have.

View 11 Replies View Related

Forms :: When Creating Form From Tables / Don't Have Picture Shown

Jan 31, 2015

When I have a simple table, users pictures inside maps (jpeg,png...) defined as OLE object, when creating the form from that tables, don't have picture shown, only name of the picture? I tried all the options, package, copy, paste... nothing...always the same... just picture name but no picture.

View 1 Replies View Related

Forms :: Can Make Form Based On Fields From 2 Tables?

Feb 15, 2014

I have created simple data base containing 2 tables connected each other and I wanted to make a form with fields taken from those tables and unfortunately it did not work and I got errors message.

Before I start to build the form do I need to create the query based on those tables and having the fields I need for the form? If yes, what sort of query, simplest one?

View 6 Replies View Related







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