473,287 Members | 1,399 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,287 software developers and data experts.

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

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 3994
Rabbit
12,516 Expert Mod 8TB
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
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 Expert Mod 8TB
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
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 Expert Mod 8TB
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
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...
5
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...
0
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...
20
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...
9
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...
5
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...
0
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...
2
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...
6
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...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.