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

Form combo box question

Rob
Is it possible to have a field in a table ( A) such as social security #

that takes a number as data. It is linked to a table (B) that has the
Name and SSN in it for the combo box drop down with appropriate
relationship. But the form for table A does not let you see the SSN
just the name but the SSN is stored in the table A.SSN. When you
click on the drop down to choose a new SSN you see both the name
and the SSN but once you choose a Name,SSN the SSN goes into the table
but the
user sees only the Name?
The property for Lookup and Bound Column and column count seem
unable to do this.
There is a simple tool in Oracle Forms that does this for you.
Thanks
Rob

Nov 13 '05 #1
4 1720
Pat
Rob,
I'm pretty sure what you're describing is the default behavior or a combo
box. Create a simple join query for your Name and SSN so that your
returning a name field and the SSN field. Set that as your Row Source. Set
your column count to two, the column widths appropriately to be able to view
everything (name might be a bit long), and set the bound column to 1.

When you select the dropdown, you should see both the name and the SSN in
two columns, but after selecting the value, you should only see the first
column that has a width greater than 0.

If that doesn't work as you were seeking, please clarify what's missing.
HTH,
Pat
"Rob" <ro**@physics.umd.edu> wrote in message
news:41***************@physics.umd.edu...
Is it possible to have a field in a table ( A) such as social security #

that takes a number as data. It is linked to a table (B) that has the
Name and SSN in it for the combo box drop down with appropriate
relationship. But the form for table A does not let you see the SSN
just the name but the SSN is stored in the table A.SSN. When you
click on the drop down to choose a new SSN you see both the name
and the SSN but once you choose a Name,SSN the SSN goes into the table
but the
user sees only the Name?
The property for Lookup and Bound Column and column count seem
unable to do this.
There is a simple tool in Oracle Forms that does this for you.
Thanks
Rob

Nov 13 '05 #2
Rob
Thanks Pat you have it exactly the way I did it.
The problem is that my users would rather not see The
bound column ( SSN which is what the table calls for )
What I would like to do is have the drop down do exactly what
you are saying but after you choose the SSN,Name the Name shows
in the form box not the SSN even though the SSN is being saved at the table
level.
Obviously if I choose Name or 2 as the bound column ( Assuming my query was
written as SSN,Name (1,2) then after I choose the SSN,Name from my drop down
the table will complain because I am trying to put a text into a number
datatype.
That is not what I want. I only want to see the name at the form level but
the SSN in the table. It is really just for the end user not to have to look at
SSN.
Thanks again for the time.
Rob



Nov 13 '05 #3
If you only want to store the SSN but see the name, then why not set
the column width on the first column to zero?
Nov 13 '05 #4
Pat
Rob,
You just need to reverse the field order on your combo box. Instead of SSN,
Name (bound col 1), you want Name, SSN (bound col 2). Access will always
display the first visible field after a combo selection.

HTH - Reply back if not.
Pat
"Rob" <ro**@physics.umd.edu> wrote in message
news:41***************@physics.umd.edu...
Thanks Pat you have it exactly the way I did it.
The problem is that my users would rather not see The
bound column ( SSN which is what the table calls for )
What I would like to do is have the drop down do exactly what
you are saying but after you choose the SSN,Name the Name shows
in the form box not the SSN even though the SSN is being saved at the table level.
Obviously if I choose Name or 2 as the bound column ( Assuming my query was written as SSN,Name (1,2) then after I choose the SSN,Name from my drop down the table will complain because I am trying to put a text into a number
datatype.
That is not what I want. I only want to see the name at the form level but the SSN in the table. It is really just for the end user not to have to look at SSN.
Thanks again for the time.
Rob


Nov 13 '05 #5

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

Similar topics

8
by: Neil | last post by:
I have a very puzzling situation with a database. It's an Access 2000 mdb with a SQL 7 back end, with forms bound using ODBC linked tables. At our remote location (accessed via a T1 line) the time...
4
by: Skully Matjas | last post by:
I am using the following code (created by the wizard) to allow to bring my form to a particular entery. But when I edit the entery (ex: put new information into a blank cell), it puts that record...
3
by: B | last post by:
I know there are several ways to speed up combo boxes and form loading. Most of the solutions leave rowsource of the combo box blank and set the rowsource to a saved query or an SQL with a where...
3
by: NB | last post by:
Let's say in the product table I have around 50,000 products (well, infact it has now about 2000 only, but it's growing very fast, hence the question here) In the order form, users will select...
1
by: Colin | last post by:
Question#1: Many of my forms have combo boxes (e.g. CustomerID). The combo box looks up CustomerName from CustomerID in the Customer table. Am I better off including CustomerName in my query...
1
by: Caesar Augustus | last post by:
Greetings all! Before I ask a question I will try to provide a little background. I am currently working on an app(PD) that is essentially a search engine to find specific records. Once the...
4
by: Mason | last post by:
This is probably an incredibly newbie-ish question. I just haven't had the cause to use many subforms before, so I'm pretty sure I just don't understand it correctly (even after reading up on it)....
2
by: Inquiring_Mind | last post by:
i am creating a database. i have the following question.. as per the specs... i need to be able to pull other forms from the master form using either a list or a combo box. what is the...
1
by: meganrobertson22 | last post by:
hi everybody- what is the best way to add data from one form to another? i have 2 tables: person and contract. here are some of the fields. table: person personid (autonumber and primary...
3
by: Kaur | last post by:
Hi, I would appriceate any help to correct the code error that I am getting for the onclick event of a cmd button. I have two forms. Main Form "frmQuestion" and form 2 "SfrmQuestion"....
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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
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,...

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.