IanNav
Programmer
- Feb 26, 2001
- 79
Hi,
I'm sure this is a very simple question to answer. I am a programmer, but am trying to show an untechnical user how to do something in Access. I would normally write the whole thing in VBA, but don't have the time to do it nor want to baffle them with the science.
Can someone tell me the easyiest way to do the following (without using alot of VBA).
I have a form with 2 controls on it.
1) cbName (Combo box)
2) txtId (text box)
and a table which has 4 fields.
(1) PersonID (Autonumber)
(2) First name
(3) Surname
(4) Depaertment
The result i would like to achieve is.
Click on the cbname combobox and select a person (value list formatted as ["first" & "surname"] with dept = "admin" sorted in dsnd order by surname) then once one has been selected the ID corresponding to that name will change in the text box.
eg.
id fname sname dept
0 joe bloggs it
1 jane dough admin
2 john smith admin
3 dave jones sales
select "joe bloggs" in combo box, textbox = "0"
select "dave jones" in combo box, textbox = "3"
etc etc..
very simple i know! i just can't do it easily with the access tools...
Many thanks
Ian
I'm sure this is a very simple question to answer. I am a programmer, but am trying to show an untechnical user how to do something in Access. I would normally write the whole thing in VBA, but don't have the time to do it nor want to baffle them with the science.
Can someone tell me the easyiest way to do the following (without using alot of VBA).
I have a form with 2 controls on it.
1) cbName (Combo box)
2) txtId (text box)
and a table which has 4 fields.
(1) PersonID (Autonumber)
(2) First name
(3) Surname
(4) Depaertment
The result i would like to achieve is.
Click on the cbname combobox and select a person (value list formatted as ["first" & "surname"] with dept = "admin" sorted in dsnd order by surname) then once one has been selected the ID corresponding to that name will change in the text box.
eg.
id fname sname dept
0 joe bloggs it
1 jane dough admin
2 john smith admin
3 dave jones sales
select "joe bloggs" in combo box, textbox = "0"
select "dave jones" in combo box, textbox = "3"
etc etc..
very simple i know! i just can't do it easily with the access tools...
Many thanks
Ian