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

Option Group - Creating a lookup field to display text in the table

beacon
579 512MB
Hi everybody,

I've searched around for answers, but the closest thing I've found referenced the Northwind database and it seems to be set up a little differently than mine.

I'm using DAPs (data access pages) for my user interface, but I'm not sure that the method will be much different than forms (except for some of the property names). I think my understanding or background knowledge on the subject is just lacking.

I have an option group that I created and I have placed 2 option buttons (Action and Other) within it. Actually, I think I may have copied them from another database, but the names and labels are all the same and I've modified the properties to fit this database.

I have changed the Value property of the option buttons to 1 and 2, respectively. Neither of these buttons has a control source.

My frame has a control source of ProblemType on a table I'm using as a container for data, called tblData_Log. I have another table, called tblProblem_Type, that has 2 problems (Action and Other) with an ID number associated to each.

When the user clicks on one of the option buttons, the value (1 or 2) should be stored in the frame, and then it should reference the tblProblem_Type to change the number into text and store it on the tblData_Log.

The help documents I've viewed on MSDN and through MS Online mention that storing a text value is possible if you refer the Value number to a separate table and make a lookup field in the table where the name needs to go. I feel like I've done this, but the value isn't appearing. Also, the dropdown box shows the ID number and the Problem, instead of just the problem.

Here's the SQL I have entered for the ProblemType field in the tblData_Log:
Expand|Select|Wrap|Line Numbers
  1. SELECT [Problem_Type_ID], [Problem_Type] FROM tblProblem_Type ORDER BY [Problem_Type] DESC;
  2.  
Everyday is a learning experience and I appreciate any help you can offer...
Aug 8 '08 #1
1 2360
NeoPa
32,556 Expert Mod 16PB
I'm not clear on exactly what you need to know from this.

Which bits are working as expected and, where they are not, what are you expecting and what are you seeing?
Aug 9 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Marco Simone | last post by:
Hi, What is your opinion about using Lookup field in table. I would like to use lookup field in table 1, so that I can choose data in combo box from table 2. Is this good design of database? ...
5
by: | last post by:
Hi guys, I have a form that I am using option groups on.. how can i make each option group a multi select ? thanks, kevin
3
by: my-wings | last post by:
I've been reading about how evil Lookup fields in tables are, but I've got to be missing something really basic. I know this subject has been covered before, because I've just spent an hour or two...
1
by: Zachary Turner | last post by:
I want to make a Lookup Field based on another Lookup field. In other words, I have this table A with two fields: ID and Name, where ID is an Autonumber and Name is a friendly name. Then I have a...
1
by: Stephen D Cook | last post by:
What I am trying to do is have a set of option buttons which are required to click one. If the person doesn't click any before insert, they get an error. If they do click one, it inserts into the...
1
by: sierra467 | last post by:
I realize that lookup fields in a table should not be used but that is the way this particular creator has done. Could someone help me by answering my question. I am trying to run a...
3
by: jim.murphy | last post by:
I am not sure If I can do this with a lookup, but what I would like to do is perhaps use lookup to retrieve a control date from an unassociated table to control what date is entered in another...
14
by: Mark | last post by:
I have a table with a field that uses a combobox to populate values. The Lookup tab within table design mode is the following: Display Control Combo Box Row Source Type ...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.