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

Editing Table by using relations...

Imagine two tables. One is T_Tender, other T_Material
T_Tender fiels: TenderNo, TenderName
T_Material fields: MatrNo, TenderNo

There is relation across TenderNo between two tables. I would like to
simply show TenderName in the table T_Material, rather than TenderNo.
But access should use TenderNo for that entry.

I am finishing now. My target actually to enable the user to edit
TenderNo for T_Material table using a form. Instead of TenderNo,
TenderName should be visible there to make the user job easier.

Will be appreceated for any help.

Nov 20 '06 #1
2 1437
use a combo box control in your form. use the following property settings
for the combo box, as

ControlSource: TenderNo
RowSourceType: Table/Query
RowSource: T_Tender
ColumnCount: 2
ColumnWidths: 0"; 1"
BoundColumn: 1
ListWidth: 1.25"

adjust the *second* number in the ColumnWidths, and adjust the ListWidth, as
needed, so that the full TenderName values show in the droplist.

recommend you read up on combo box controls, and their properties, in Access
Help, so you'll understand how they work.

hth
<sa*************@yahoo.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
Imagine two tables. One is T_Tender, other T_Material
T_Tender fiels: TenderNo, TenderName
T_Material fields: MatrNo, TenderNo

There is relation across TenderNo between two tables. I would like to
simply show TenderName in the table T_Material, rather than TenderNo.
But access should use TenderNo for that entry.

I am finishing now. My target actually to enable the user to edit
TenderNo for T_Material table using a form. Instead of TenderNo,
TenderName should be visible there to make the user job easier.

Will be appreceated for any help.

Nov 20 '06 #2
It sounds like what you want is a combo box on the form, with its Row Source
being, "SELECT TenderNo, TenderName FROM T-Tender ORDER BY TenderName"

The number of rows would be 2, the bound column would be 1, and the first
width of the first column in the Column Width property would be set to 0
(0";2" for example).

The Control Source would be TenderNo in table T_Material.

--
Darryl Kerkeslager
<sa*************@yahoo.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
Imagine two tables. One is T_Tender, other T_Material
T_Tender fiels: TenderNo, TenderName
T_Material fields: MatrNo, TenderNo

There is relation across TenderNo between two tables. I would like to
simply show TenderName in the table T_Material, rather than TenderNo.
But access should use TenderNo for that entry.

I am finishing now. My target actually to enable the user to edit
TenderNo for T_Material table using a form. Instead of TenderNo,
TenderName should be visible there to make the user job easier.

Will be appreceated for any help.

Nov 20 '06 #3

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

Similar topics

6
by: Kenneth Osenbroch | last post by:
Hi. I want to create a trigger that only allows delete from table A if corresponding record in table B does not exist. Any idea on how this can be done? Thanks, Kenneth.
61
by: Toby Austin | last post by:
I'm trying to replace <table>s with <div>s as much as possible. However, I can't figure out how to do the following… <table> <tr> <td valign="top" width="100%">some data that will...
4
by: What-a-Tool | last post by:
I am trying to write a program that will take all the members of a data base, add them to a tree, with all child relations as sub-nodes. I am having a problem getting the parent child relations...
3
by: dbuchanan | last post by:
Hello, (Windows forms - SQL Server) I fill my datagrid with a stored procedure that includes relationships to lookup tables so that users can see the values of the combobox selections rather...
0
by: latin & geek via DotNetMonster.com | last post by:
hi! ok, im working on a database application. ive successfully managed to establish a relationship between two tables and display them on a datagrid, edit and add new records to them. now i...
4
by: G .Net | last post by:
Hi I have a DataSet with several DataTables. I have set up relations between these tables. I want to delete all the tables and re-fill them. However, when I try to do so, even after using...
6
by: ravichoudhari | last post by:
i came accross requirement of multiple foreign keys in a table referencing the same primary key another table. i created the table relations using the relations editor in access. even though i...
3
by: Spectre1337 | last post by:
Hello, I've encountered a rather puzzling problem with SqlDataAdapter. I've set up a number of elaborate tables in the Microsoft SQL Server Management Studio Express (including several table key...
3
chathura86
by: chathura86 | last post by:
hi, i have a table which has child rows in another table. Now i want to truncate this table temporally, because i will re-enter those values in a short time with some changes. cannot use update...
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...
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
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
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...
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
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
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.