473,806 Members | 2,248 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Autopopulate fields in a form

22 New Member
I would like to autopopulate fields in a form by choosing one value from a table and having the corresponding data filled in based on 'Library' tables I have made. I have been successful in building autolookup queries but do not know how to mirror this in a form. I am not experienced with Visual Basic...meaning I have played around in it but haven't been successful...if I have some guidance I am sure I could plug in the right fields to correspond with my data. Any help will be appreciated! Thanks.
Sep 12 '06 #1
5 7249
comteck
179 New Member
I think this is what you are looking for. Try this:

Open your form in design view, and open the properties. Assign the query to the Record Source of the form. Now when you add controls, such as textboxes, combo boxes, etc to the form, you open the properties for those controls, and click on the Control Source. You will have a list of all the fields for the query. Select one.

Close and save the form.

Is this what you're looking for?
comteck
Sep 12 '06 #2
aharding
22 New Member
Yes...That worked in its own form. Will this work in a more complex form? I want to autopoulate for just one part of the form based on a my query, but the rest of the report pulls from a table.

On another note...I inserted a subform into my main form. When I enter data into the subform it stores the data in the table like it should. Is there a way to link the other data in the form (that pertains to all records in the subform) to store in the table for those each of those records as well?

EX
Main form
A
B
C which all apply to the following records

Subform
D D1 D2 D3
E E1 E2 E3

and the table needs to show:

A B C D D1 D2 D3
A B C E E1 E2 E3

Sorry this is a learning process for me...I have my Access books in front of me which have been very helpful but sometimes it is better to actually ask someone!

Thanks!
Sep 12 '06 #3
comteck
179 New Member
Are you trying to do a JOIN, where you have a form based on more than one table, or on a table and a query?

comteck
Sep 12 '06 #4
aharding
22 New Member
Ok..I figured out the autopop. Do you know how to link fields to enter data into a table?

Thanks
Sep 12 '06 #5
PEB
1,418 Recognized Expert Top Contributor
In fact be carefull about this! Expect your primary keys and forign keys! :)

:)
Sep 13 '06 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
3670
by: Dave | last post by:
Hi folks, I'm in the middle of adding some validation functionality to an inventory tracking form. What I would like to do is have one dropdown menu/Listbox(Part Number) and another text field (Product Description). When the user selects an item from the drop down (IE 12S0FB) it will autopopulate the text field with a description of the product. At the
3
1476
by: Eric | last post by:
Hi, I'm just looking into the samples that are delivered withthe Enterprise Localization Framework/Toolkit. I have set it up and it all works fine. But.. now i have a question. I read a post, from a Microsoft employee i belief, and he stated the following: >3) The AutoPopulate feature doesn't work as well as I
3
3662
by: russr | last post by:
Hi, I need to autopopulate a second field based on the info that i have selected from a drop down box in the first field. I need to write both fields back to a SQL database... EXAMPLE: Field A has a list of counties Field B has a list of capital cities I want to select Ireland from the dropt down in field 1 and field 2 should autopopulate with Dublin. The values of the fields have to be: Field 1 = IRELAND Field 2 = DUBLIN
4
3151
by: PRLIT | last post by:
First, let me just say that I've been looking at this site for help for awhile now. Thank you for all the help you given me over the past few months. Second, I'm creating a form in Access 2007. I have a customer ID field, customer name field, parts, time, cost. The customer name is part of the customer table while the rest of the data is part of the "order" table. Looking for the code that would autopopulate the customer name field based...
2
3627
by: jw01 | last post by:
I have a form in which there is one combo box and three text boxes: Combo Box: -> Item A -> Item B -> Item C TextBox1: TextBox2: TextBox3:
6
2271
by: Neekos | last post by:
i have a form that allows the user to enter the main information pertaining to a group. i have a button on this form that opens a second form that allows them to enter the individual people of this group and their info. They already entered the Group Name and Group Number on the first form, and i want it to carry over to the second form so that they dont have to retype it. The forms are based on two different tables. Is this possible? i tried...
1
2143
by: Darren | last post by:
Hi there. I am a hobbyist with no formal background in computer programming. Although years ago I’ve dabbled with a bit of the Microsoft QBasic and very simple MS-DOS batch files, javascript is new to me and after about 2-3 weeks of googling, javascript is still clear as mud. I have been tinkering with a form and have developed a working calculator with the help of a excel add-in, which exports excel formulas to html/javascript code....
2
1704
by: debson | last post by:
Hi I have a main form in which I have linked subforms on tabs.. My problem is that I have one subform which is linked to a table which has 2 to 6 sessions in one table, we are required to fill out a feedback form for each session. So I have put hidden 6 tabs with subforms on each tab linked back to tbl_feedback..... So far I have it set up so that when a date field next to a session number on first tab is changed it opens appropriate tab...
3
1964
by: hkim8392126 | last post by:
I've been searching and reading the forum, but with no success to find what I was looking for. I am trying to autopopulate a field in a form. I am not sure if I need to create a query or table to do this so please let me know how I would be able to perform this task. First, I have a table with field 1: units and field 2: has the corresponding battalions. I have a form that has the combo box for units and battalions. I want the battalion combo...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10364
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10370
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
9186
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
7649
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
6876
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
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3849
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.