473,386 Members | 1,785 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,386 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 3996
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...

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.