473,508 Members | 2,289 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

id number

hi all !

i have a form where users select a persons name from a drop down
list.
when selected the persons name goes into a field in a table.
this list of names comes from another data base that i've connected
to.
when the user selects a name i want the persons ID number to go into
an ID field as well as there name going into a name field.
how can i do this ???
any help would be great !!

thanks
brino

Apr 8 '07 #1
2 1391
Why do you want to do this? You can just have the ID field recorded and
then have a query that pulls in the name?

"brino" <bd*************@yahoo.com.auwrote in message
news:11**********************@b75g2000hsg.googlegr oups.com...
hi all !

i have a form where users select a persons name from a drop down
list.
when selected the persons name goes into a field in a table.
this list of names comes from another data base that i've connected
to.
when the user selects a name i want the persons ID number to go into
an ID field as well as there name going into a name field.
how can i do this ???
any help would be great !!

thanks
brino

Apr 8 '07 #2
On Apr 7, 11:03 pm, "brino" <bdsolutions2...@yahoo.com.auwrote:
hi all !

i have a form where users select a persons name from a drop down
list.
when selected the persons name goes into a field in a table.
this list of names comes from another data base that i've connected
to.
when the user selects a name i want the persons ID number to go into
an ID field as well as there name going into a name field.
how can i do this ???
any help would be great !!

thanks
brino
Scott is right - you should not really have to do this - usually that
is. But since the person's name comes from another database, maybe
you have sufficient reason. Just give it some thought before you
store both tho.

If you want to do it, in the combo box query have both fields even tho
you show only the person's name. In the after update event, write
code to pick from the combo box using me.cboName.column(2) for example
to get the ID. Then store it where you want. The first column in the
combo box row source is 0 if I recall correctly.

-- Larry Engles

Apr 8 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
12013
by: EAS | last post by:
Hey, I'm new to python (and programming in general) so I'll prolly be around here a lot... Anyways, I've found out how to make a "guess my number game" where the player guesses a number between...
11
7128
by: don | last post by:
Ok, this is a homework assignment, but can you help me out anyway...... I need a routine for figuring out if a number inputted by the user is a prime number or not...... all I'm asking for is Not...
13
6505
by: Ron | last post by:
Hi all I'm deciding whether to use the PK also as an account number, invoice number, transaction number, etc that the user will see for the respective files. I understand that sometimes a...
19
4411
by: gk245 | last post by:
Trying to write a program that will figure out if a number is perfect or not. Here is my logic: 1) Read in the number 2) Split it up (number - 1) 3) Put all the split up numbers into an...
4
10539
by: fatimahtaher | last post by:
Hi, I am supposed to create a program that generates a random number and then asks the user to guess the number (1-100). The program tells the user if he guessed too high or too low. If he...
0
7120
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
7323
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
7380
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
7039
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
7494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5626
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,...
0
3192
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
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1553
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.