473,487 Members | 2,674 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Autopopulate

2 New Member
I have built a database to manage the borrowing of items from stores. On the “New Request” form I have the facility to register the borrowing of up to 3 items. To make the request simple and minimise the risk of errors I have three combo boxes for Part Codes and I want to auto populate the relevant Part Description boxes. By using the code below I can achieve my aim for the first item [Part Code]but how do I do the same for the other two?[Part_Code2] & [Part_Code3].
Private Sub Part_Code_AfterUpdate()
Me.Part_Description = Me.Part_Code.Column(1)
End Sub
I have a two column source table (PartNumber) containing Part Code and Part Description and for traceability I need to record who borrows what and when so have a second table (Removal) populated from the form via a query. I know I’m breaking the first rule of databases by storing the data twice but company rules mean we must keep history. Currently, the “librarians” are populating Part Description boxes 2 & 3 manually.
Thanks in advance for any help you can give.
Nov 7 '11 #1
2 993
jimatqsi
1,271 Recognized Expert Top Contributor
Seems you're leaving out something. Why is there any question about how to do it?

You do have 2 more combo boxes, correct? Each of them can have an AfterUpdate event. Each one will look similar to the one you have described, but of course me.Part_Description will become Me.Part2_Description=Me.Part_Code2.Column(1) for the 2nd one and Me.Part3_Description=Me.Part_Code3.Column(1) for the 3rd one, or whatever the exact names are.

Jim
Nov 7 '11 #2
Tony Freeman
2 New Member
Thanks Jim, your reply made me look closer at my combo box names, simple typo error on my part.
Nov 8 '11 #3

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

Similar topics

2
3647
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...
2
760
by: Fork_In_Road | last post by:
I have a main form with customer names & addresses, and a subform that I want to have the following: I wish to pull up an equipment name with a combo box (from my "equipment" table); then have the...
3
1460
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...
0
1084
by: guy | last post by:
I am experimenting with the Enterprise Localization Toolkit. Using the Designer and Translator feature, I am able to include a new label in the Basic sample. Apparently, this can also be...
3
3650
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...
5
7229
by: aharding | last post by:
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...
4
3137
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...
6
1877
by: GLEberts | last post by:
Hi, I would like to ask for some direction on what would be the best way to (1) Autopopulate a combo box to text boxes - used for a customer list (2) Then have the information saved in the...
2
1689
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
1946
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
7106
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
7137
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7181
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...
1
6846
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...
0
5442
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,...
1
4874
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...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
600
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.