Populate Table

Sep 17, 2006

Hi I am new here. This is probably an easy question but I have not been using access long and would appreciate some help. What I want to do is query two tables. The first table has fields INST_NBR and PRICE_LIST that I need to find a match on in another table with the exact same field names. Whe a match is found, I need to populate a new table that is already defined with fields from both of the tables I used in my query. So lets say I have table 1 and table 2. I want to use the fields INST_NBR and PRICE_LIST from table 1 to find the match in table 2 using the same field names. When I find a match on the two fields populate table 3 with fields from table 1 and table 2.

I hope that this is not confusing. Unfortunatly I cannot post a sample because they are linked table from our SQL server. Any help would be appreciated. Thanks in andvance.

View Replies


ADVERTISEMENT

Populate A List Box With Table Names & Table Data

Feb 27, 2008

I have 2 questions/problems:

1. I want to populate a list box with all the Tables Names in my Database using VBA.

2. I also want to create another List Box or Grid (or any thing that will show table data) that when i have select a Table Name (See above (1)) it will show all the data in that table in the List Box. Was thinking some kind of SQL using vba to populate the list box?

Any ideas or help will be much appreciated

Richard

View 1 Replies View Related

Queries :: Populate Blank Table With All Values From Another Table

Jan 23, 2015

I have two tables (Table 1, Table 2). Table 1 is blank and has the fields "Field1, Field2, and Field3." Table 2 has data and 10 different fields ("Field1, Field2", etc). I want to copy all data from the matching fields in Table 2 to the corresponding Table 1. I've tried an Update Query in design view. Did not join any records, and just a simple:

Field: Field 1
Table: Table 1
Update To: [Table2]![Field5]

This returns 0 records to update. I thought about a Make Table to override the entire Table, but that isn't working either.

View 2 Replies View Related

General :: Search Fields From Table B And Populate Into Table A

Jul 23, 2013

I have a table called BID with the following fields

bidder, seller, iid, starttime, bidtime, and bidprice

bidder is an id number that is reference to uid of table USER

the USER table have the following fields,

uid, uname, city, and state

I created a BID form for the user to enter data into the BID table. What I am trying to do but is having trouble with is have the user search for their name that may already be store in the uname field in the user table, and what ever they choose base on their search, the uid of this uname gets store into the bidder field of the bid table.

I still have a second step where the user in the bid form can search the iid but shows the itemname from the item table, and the value of seller, iid, and starttime from the auction table gets populated into the bid table.

iid from the auction table is reference to the itemtype and the following fields exist in the itemtype table.

iid, itemname, description

View 14 Replies View Related

General :: Using Checkbox Form From One Table To Populate Another Table

Dec 11, 2013

1. I have a table which lists all of the equipment we use in our company and would like to use it as a template in a form so that users can select a checkmark if the equipment is being used that day. The checked items would then be used to populate another table which records all of the equipment the user has selected. I thought the checkmark method would be best so that the user can scroll through the list of equipment and select multiple pieces for the day. The reason I don't use a multi-value field is so that the user can also enter quantity and hours of equipment used in the same table when they scroll through the list.

2. Once all of the equipment pieces have been checked, I would like the user to be able to click a review button which would navigate to the next form with all of the selections for the day. This new form will have the option to go back to the first form if any corrections need to be made. And also have the option to submit the results.

3. Once the user is finished with their selections, the user can then select Submit which will finalize the recorded equipment table and clear the checkboxes and any inputs from the equipment template table (without modifying anything) so that it can be used for the next day and so forth.

I am using access 2013...

View 3 Replies View Related

Populate Table Column With Data From Another Table

Dec 23, 2004

I have one database containing several tables, two of which are associated to this inquiry:

1) tblCategories
Contains two columns: CatID and Category Name

2) tblPending
Contains many columns of data obtained through upload from a web form including a column to capture the CatID and also a column for Category Name.
I wish to populate the Category Name column based on the results of data uploaded into CatID column

How is this accomplished? This is inherited project and I have very little experience with Access so just limping along...
Specific instruction much appreciated.

Thank you.

View 1 Replies View Related

Can You Populate Table From Recordset??

Oct 28, 2004

hello there,

just curious if it was possible to populate an empty tables' fields from a recordset that had been defined earlier in VBA under the criteria of a bit of sql code?

cheers.

View 2 Replies View Related

Use Calculation To Populate Table

Jan 2, 2008

Is there a way to take a value entered in a table to calculate a new value to populate a second field in the table? For example, if the user enters that the company has received $100 from a client, I need to show that $100 in the income field of the table, but then also calculate the commission based on a formula, and save that new commission value as well.

I was doing this in a query, but then the value doesn't get stored...

Thanks...

View 8 Replies View Related

Auto-populate From Another Table

Aug 16, 2011

Okay--I have a table of scholarships, and each one has fields for primary contact, secondary contact, tertiary contact, etc., in which the names of the contacts associated with each scholarship are stored. What I need to do is to have every name pulled from this table and listed--each as its own row--in another table. I'd like it to do this automatically so that if a new name is added to the scholarship table, it will create a new row in the other table.

View 2 Replies View Related

Populate Table Cell With Value From Another Table

Jun 1, 2005

I have a form1 which record source table1 is and this form1 contains a continuous subform linked to table2. how do I automatically populate a field of table2 with th primarykey from table1, in order to show in the subform only those records related to the same primarykey as from form1.

thanks in advance!

View 1 Replies View Related

Using A Table To Populate 3 Form Fields

Mar 17, 2006

Hi

I have a form with 3 combo boxes part No, Description, Cost. I have created a table with this information in I want to be able to select the information from either one of the three drop down boxes and the other two to automatically collect the information from the other colums of the table. Can anyone help please?

View 2 Replies View Related

Queries :: Populate The Field From Another Table

Sep 25, 2013

I am trying to populate a field on Table (Drawing Sheets - Arch) from field on Table (Project Information). I had attached an image for reference.

Table (Drawing Sheets - Arch) has a relationship with Table (Project Information) which is the Project_Number. I can populate this manually but it will take me forever as this are 500+. I had done the other Field (Revisions) using a Query but this is not linked to another Table so it is easy to type "0".

I had tried to make a Query and using the "Build" (Right-click from the Update to) but I couldn't make it right.

View 2 Replies View Related

General :: Populate Combo Box From Table

Nov 9, 2013

So the information that I had to start with was

Colours

Silver
Black

Material

Metal
Plastic
Rubber
Digital

Component

Screen
Keyboard
Mouse Pad
Case
Hinge

So I've created 3 tables - one for each information group arranged like so. However my problems are - I don't know how to make it so that as soon as all the info for one set of parts is filled another set automatically appears? And in the Design section of the Form I have the following error because I wasn't too sure what to use apart from a text box-

View 7 Replies View Related

Tables :: Populate A Field From One Table To Another

Aug 7, 2013

I have a small database to keep track of some student information. Right now I have one table where a student is first entered with their contact information and then other tables that house specific information about other areas related to the student (if there's no longer with the school, paperwork is complete, etc.). The primary key for all of it is their student ID. The tables are linked parent/child with forms, etc., so that when I open a form having to deal with one of the related tables (student active status), and pull up the student's ID from the first table, it'll then populate that ID into the status table, even if something else isn't added.

What I need is really that when I create a new student on the first table with their contact information, that their ID is populated into all of the related tables, without waiting for additional information to be added. This is because I need to run reports to see who is missing information, etc., and without their ID showing up in that second table, I'm not getting accurate results. How would I set this up?

Sample of tables with smaller number of fields:

Table 1 - Contact Info (always done first for a new student)
Student ID
Name
Address
Email

Table 2 - Student Inactive Status (want the ID numbers to be the same quantity as table 1, even if Student ID is then the only completed field in this table)
Student ID
Inactive status type
Date

Table 3 - Paperwork (same issue as table 2)
Student ID
Submission Date
Approved By

View 5 Replies View Related

Auto Populate Table Field

Sep 12, 2012

So I have this query that runs ....

Code:
Expr1: Left([EVENT_TBL].[EVENT_TYPE],3) & Left([EVENT_TBL].[EVENT],4) & Format([EVENT_TBL].[EVENT_DATE],"ddmmyyyy")

How can I get the result into the [EVENT_TBL].[EVENTTYPDTE_ID] Field?

View 3 Replies View Related

Auto Populate Table With Dates

Aug 4, 2014

I have a table with a few fields, which include a field called StartDate and a field called EndDate. From the table I plan on finding the Min StartDate and the Max EndDate, is it possible, to make a table from these 2 sets of data and have the fields in between be auto populated in increments of a month?

For example. (Dates in dd/mm/yyyy format)
StartDate=1/1/2014 and Max EndDate=1/12/2014

So the table should show:
1/1/2014
1/2/2014
1/3/2014
1/4/2014
1/5/2014
1/6/2014
1/7/2014
1/8/2014
1/9/2014
1/10/2014
1/11/2014
1/12/2014

View 7 Replies View Related

Populate Subform/table With Multiple Records

Aug 5, 2005

I have the following tables:
tblProjects
ProjectsID (Primary key - exclusive)
ClientProjects
tblProjectsDetails
ProjectsDetailsID (Primary key)
ClientProjectsDetails (Secondary key)
tblQuotes
QuotesID (Primary key - exclusive)
ClientQuotes
Service
Rate
tblQuotesDetails
QuotesDetailsID (Primary key)
ClientQuotes (Secondary key)
Service
Rate

I have the following forms:
fmProjects
fmProjectsDetails (parent/child)
fmQuote
fmQuotesDetails (parent/child)


When I add a project I need to have data from the tblQuotes and tblQuotesDetails to populate tblProjects and tblProjectsDetails respectively.

It is very easy to populate tblProjects from tblQuotes since it is a single record. Therefore I use:
Me.ClientProjects = Me.ClientQuotes

:confused:
The question is: how to match the data of the 2 subforms? Since there will be more than one record per subform?

Any help is really appreciated.

View 2 Replies View Related

Populate A Bound TxtBox And Not Have It Update Table?

Mar 12, 2008

It's an unusual request, I know, but it's necessary for my purpose.

I have a form, frmMain that I use to update a number of tables. On it is a number of combo boxs, comProduct, comBrand, comSize, comPrice and comQuantity. comProduct opens a new form, frmNew if the users input is not already in the table. On frmNew there are again combo boxes comProduct, comBrand and comSize. This form adds the record to the table.

So, if I input a new value - not already in the database - for product in the comProduct combo box, the form frmNew appears and I can proceed to define the product, brand and size of the new record. The form then closes and reopens frmMain and tabs across to comQuantity (skipping the fields I've already defined in frmNew).

Now if you can wrap your head around that, here is the problem: Because I've already entered the values for product, brand and size in frmNew, I want them to automatically appear in the appropriate combo boxs on the frmMain form. I've been using the following code (executed from frmNew, so Me = frmNew):

Code:[Forms]![frmMain].[comProduct] = Me.comProduct[Forms]![frmMain].[comSize] = Me.comSize[Forms]![frmMain].[comBrand] = Me.comBrand

It works, but I've since discovered it creates a new record in the table so I end up with two duplicate records (one when I submit frmNew and another when the values are automatically input into frmMain.)

Now, my question: How can I display these values in frmMain without having them create the second record? I was thinking of using a SELECT query somehow, but I don't know where to begin. I also considered using labels instead of comb boxes, but I'll need to be able to edit them if the record already exists.

View 3 Replies View Related

Forms :: Lookup Table To Populate Combo Box?

Sep 2, 2014

I'm using a lookup table to populated a combo box on my form. I use a provided list of input strings (hundreds) in my combo box and the list is provided in all caps. How can I convert these provided words (strings) to first cap from either the quarry level or form level.

View 1 Replies View Related

Tables :: Auto Populate Field In Table

Feb 15, 2015

I have a table ([AllNames]) that a field ([Past_Employers]) is being auto-populated, and I don't want it to.

[Past_Employers] population is setup form a form, which references a separate table of employer names [Employers].

If I enter a new record directly in the [AllNames] table the [Past_Employers] field populates.

[Past_Employers] is a multi-value field (yes ugh - I know!!!) and is not required.

View 4 Replies View Related

Tables :: Populate Lookup Table With Data?

Nov 22, 2013

I have problems understanding lookup tables, especially how to populate them with data. I'm working on an exams database, and have many such tables...

Table for Students
Table for Subjects
and a lookuptable for studentsubjects

Table for Classes 1, 2, 3, 4
Table for Subjects Eng, Math, Geo, Chem... 11 subjects in all
and a lookuptable SubjectClasses

Having inserted data for all subjects and all classes, should I then go ahead and Insert data for SubjectClasses? There will be 44 items!

Even more appalling, studentsubjects table will have (no of students * 11) for my small school, it will be 1,760

View 8 Replies View Related

Forms :: Populate Subform With Table From Combobox

Feb 14, 2014

I've got an access front-end database running on Access Runtime on a Terminal Server with a back-end on a data server both of which are hosted by a remote company and accessed via Terminal Services. All is well and the database is working fine but because this is a cloud system I need a way that I can easily delve into the tables on the back-end without copying it down locally from the cloud each time (I've set up an "administrator" option so that this would be available to limited users). I've got the front-end forms working as I'd like but I have quite a few tables and I'd like to avoid creating a separate form for every table. I've been able to populate a combobox on my form with the list of linked tables and I'd like that when I choose a particular table from this list that the whole table is then visible within a subform below in case I need to manually intervene with the data for any reason.

View 1 Replies View Related

Modules & VBA :: Populate List Box With Table Names

Jul 10, 2014

I am trying to populate a ListBox with the names of the tables from another database. I have the following function which loops the table names from the database I want. The function is caleld on Form Load and passed into the ListBox but the List Box is empty.The message box in the function does display the table names when called from the form. I just cannot get the list box to populate.

Code:

Public Function ListTables()
Dim db As Database
Dim i As Integer
Dim s As String
Dim tdefs As TableDefs, tdef As TableDef
Set db = DBEngine.OpenDatabase("C:MyPathAnalyzed Tables.mdb")

[code]...

View 5 Replies View Related

Forms :: Populate Data From Table To Subform

Nov 29, 2013

I want to append/populate all data from one table to subform?

It is possible?

I managed to populate data from one table to another but my relations between form and subform isn't good, because record that is supposed to be filled as the "link master fields" is left blank.

View 3 Replies View Related

General :: Populate Calculated Field Into Table

Aug 6, 2013

I need to populate a table with Grid reference values consisting of 6 figure integers, eastings and northings.

I am receiving/downloading the Grid Refs in a UK Grid Tile format, with 3, 4 or 5 figures preceded by letters.

E.g. SK 456 849, SP 6789 4356.

I have used some query functions and written a bit of VBA behind a form to convert the received coordinates into the full coords I want. The coordinates are now in unbound controls on a form, and I want to pass these back to a table so I can use the data for display purposes.

Ideally I want to link to the table from a GIS and autoupdate without having to open the database (my imported data is linked in to feed the database automatically).

I have done some searching and not found a method to pass the values into a table - What is my best way of doing this automatically?

View 10 Replies View Related

General :: Lookup Into A Table - Populate Same Field

May 28, 2014

I have a table holding a list of post codes, and their servicing depot EG -

ID Postcode Depot
1 AB10 Edinburgh
2 AB11 Edinburgh

Then a form, which has a field for depot ( Fld_Depot )

What i would like is, when the user clicks on the field, a msg box prompts, asking for them to input a postcode

Once the postcode is entered, it populates that field with the relevant depot from the table....

View 3 Replies View Related







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