473,401 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Autopopulate fields in a form

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 7227
comteck
179 100+
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
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 100+
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
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 Expert 1GB
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
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...
3
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...
3
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...
4
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...
2
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: ...
6
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...
1
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...
2
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...
3
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.