473,785 Members | 2,557 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to select value from combo list thru lookup table and update different table.

4 New Member
Hello,

I need help in selecting a value from combo list thru one lookup table and update different table on MS access form.

For eg; I have a lookup table of usernames,

I need to use this lookup table in all my other forms to update different table selecting the username from my lookup table.

I tried Docmd.runsql but unable to succeed.

thanks in advance,
Senthil
Feb 14 '07 #1
5 4019
Rabbit
12,516 Recognized Expert Moderator MVP
What table are you trying to update? And what data are you trying to update in the table?

Have you tried making a query? Does that work?
Feb 14 '07 #2
sensreview
4 New Member
Hi,

I have 2 tables,

1. Userlookup table
field: username
2. Project data table
field 1: project name
field 2: username
field 3: start date
field 4: end date

i created a form to fill the "project data table", i wished to have a selection option (like a drop down menu) in the username field. so i made the row source to select the username list from the "userlookup table"

but when i creat a command button for adding the values to : "project data
table " it is not working.

Senthil
Feb 15 '07 #3
Rabbit
12,516 Recognized Expert Moderator MVP
Hi,

I have 2 tables,

1. Userlookup table
field: username
2. Project data table
field 1: project name
field 2: username
field 3: start date
field 4: end date

i created a form to fill the "project data table", i wished to have a selection option (like a drop down menu) in the username field. so i made the row source to select the username list from the "userlookup table"

but when i creat a command button for adding the values to : "project data
table " it is not working.

Senthil
I assume your form is bound to your table? Just set the control source of the combo box (drop down menu) to the username field of your project table and you don't need a button to update the records, it'll update automatically.
Feb 15 '07 #4
sensreview
4 New Member
I assume your form is bound to your table? Just set the control source of the combo box (drop down menu) to the username field of your project table and you don't need a button to update the records, it'll update automatically.
Thanks it works fine.

:-)
Feb 16 '07 #5
Rabbit
12,516 Recognized Expert Moderator MVP
No problem. Glad I could help.
Feb 16 '07 #6

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

Similar topics

14
2938
by: Jos? | last post by:
This one droves me completely mad. I did not succeed to exploit the track given to me by Bob. I have : three tables : Clubs, Persons and ClubsPersons that join the two first in a many to many relationship. Club has two (2) fields : ClubId (Autonumber) and ClubName (Text). Peoples has two(2) fields : (PersonId (Autonumber) and PersonName (Text) ClubsPersons has two (2) fields : ClubId (LongInteger) and PersonId
5
2383
by: Dalan | last post by:
I have been searching the archives in an effort to discover how to derive a dual use of a single combo box - so far no go. I found the piece below which pretty much represents the usage. To summarize: The cboKeyword box on the frmCustomer looks up Keywords from a separate table that have just a list of keywords and a KeyID number. The bound column is tied to the autonumber and is saved in the frmCustomer table. The keywords appear in the...
0
4806
by: JSantora | last post by:
Essentially, InsertAT is broken! For the past couple of hours, I've been getting this "Parameter name: '-2147483550' is not a valid value for 'index'." error. Apparently, its caused by having manually inserted a row in the table bound to the Combo box. The InsertAt Method of adding a row just does not work. Hope this helps anyone with this problem. john
20
3720
by: MLH | last post by:
120 MyString = "How many copies of each letter do you need?" 150 MyVariant = InputBox(MyString, "How Many?", "3") If MyVariant = "2" Then MsgBox "MyVariant equals the string '2'" If MyVariant = 2 Then MsgBox "MyVariant also equals the value 2" 160 If MyVariant = "" Then HowManyCopies = 1 170 If Not IsNumeric(MyVariant) Then HowManyCopies = 1 MsgBox "OK. HowManyCopies has a value of " & CStr(HowManyCopies) 180 For i =...
9
32626
by: Vmusic | last post by:
Hi, I'm using MS Access 2002. I have a form with a combo box built from a query that returns one column, and that one column is the bound column. How do you use VBA to programmatically change which row in the combo box is selected?? I looked at the forum and the answers aren't very clear. Of course the MS Access help file is worthless.
5
3702
by: jjyconsulting | last post by:
Newbie needing some help. I have a tblParticipants. The fields include gender, education_level, income, occupation etc., I'm trying to create a form where a user can run a query from the form and just choose the appropriate criterias from the combo boxes to get the results. I also want the query to run even if there is not a value in all the combo boxes ie., i want just all males with income level of over $100,000...Any insights or help...
0
1433
by: vljones | last post by:
Hoping to find a way of entering new data into a combo box which contains a list of items contained in a table. In addition I want to allocate an ID number to entries that are not currently in the list. I have Form with a subform - frmQuotation!frmSubLimits On the subform I have the following fields: txtSubLimit and numSubLimitID
2
7361
by: Patrick A | last post by:
All, I have a form (FRM_ShowAll) on which I have placed a number of instances of the same sub-form (FRM_Assign) as different child forms (SFRM_Agent, SFRM_Executor, etc.). The sub-form is a continuous form. I would like to specify a different Value or Default Value for a combo box (CB_Role) on each instance of the subform control in code. The combo box CB_Role is fed from a lookup in the source table,
6
5185
by: David Wright | last post by:
Hello Folks I am using Microsoft Access 2000 I would be grateful if someone could help me with “Dlookup”. I tried various methods of writing Dlookup and various events to trigger it, none of which were successful. I have been able to display the required value in a ‘text box’ which is a little helpful but not ideal. I have a table called tblLogSheet. The ‘Description’ field of this table uses a lookup table called...
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9485
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
10161
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
10098
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
8986
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...
0
6743
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
5390
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5523
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3662
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.