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

Help Needed in bindings,

Hi all,

from the child side of the relation, I need to get a parent table's columns
value,

ex :

Customer use a curency (I store the Curency_ID into customer)

I need to retreive the Curency_Name from the Curency Table

How can I accomplish that ? (what fonction or Syntax).

Thanks a Lot to help a green Guy !

Marc R.
Jan 21 '06 #1
2 1001
HI there,

If I understand you correctly you have 2 tables, Customer & Currency,
related via the currencyid.

How about:

SELECT x.currencyname FROM CUSTOMER c, CURRENCY x
WHERE c.currencyid = x.currencyid

If you were doing it for a particular customer possibly add another
condition such as

AND c.customerid = @mycustomerid parameter

Something like that?

Cheers, Joe :)


"Marc R." <No****@NewgroupsONLY.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi all,

from the child side of the relation, I need to get a parent table's columns value,

ex :

Customer use a curency (I store the Curency_ID into customer)

I need to retreive the Curency_Name from the Curency Table

How can I accomplish that ? (what fonction or Syntax).

Thanks a Lot to help a green Guy !

Marc R.

Jan 21 '06 #2
Thank you,

I tried to explain to you how close I was from the solution And I found it.

here's how I fix the problem.

dim I as interger
dim DRV as datarowview

for I = 0 to me.combobox.items.count -1
DRV = me.combobox.items.item(I)
if DRV.Item("cur_id") =
DVCustomer.item(me.grid_customer.currentRowIndex). Item("cur_id") then
me.combobox.selectedIndex = I
end if
next

I was going to tell you that ComboBox Items were DataRowview type, since
that Combobox will be always attach to the same dataview I know that que
column "cur_id" will always be to it so I don't event Cast it before using
it.

Thanks for you response, It wasn't part of the solution but you help me
anyway to resolve the issue.
"Joe Van Meer" <jv******@eastlink.ca> wrote in message
news:us*************@TK2MSFTNGP09.phx.gbl...
HI there,

If I understand you correctly you have 2 tables, Customer & Currency,
related via the currencyid.

How about:

SELECT x.currencyname FROM CUSTOMER c, CURRENCY x
WHERE c.currencyid = x.currencyid

If you were doing it for a particular customer possibly add another
condition such as

AND c.customerid = @mycustomerid parameter

Something like that?

Cheers, Joe :)


"Marc R." <No****@NewgroupsONLY.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi all,

from the child side of the relation, I need to get a parent table's

columns
value,

ex :

Customer use a curency (I store the Curency_ID into customer)

I need to retreive the Curency_Name from the Curency Table

How can I accomplish that ? (what fonction or Syntax).

Thanks a Lot to help a green Guy !

Marc R.


Jan 22 '06 #3

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

Similar topics

10
by: svenn.are | last post by:
Hi, I wanted to run a program that is written in PyQt on my mac, and went over to Riverbank to get PyQ 3.13 and SIP 4.1.1 sources. I followed the installation guide except for the compiling...
1
by: Arthur Chereau | last post by:
Hi, I'm trying to setup viewcvs to work with subversion 1.2.0 on Linux with Python 2.4.1. The last viewcvs (from CVS) needs subversion python bindings. I installed swig and built subversion from...
8
by: Wolfgang Lipp | last post by:
<annotation> the first eleven contributions in this thread started as an off-list email discussion; i have posted them here with the consent of their authors. -- _w.lipp </annotation> From:...
1
by: Jason | last post by:
Hello, I have been going through the source code of tintin to see about adding key bindings. In working with this I found an issue with how keybindings work in GNU readline. The problem is...
1
by: Jason Yamada-Hanff | last post by:
Hi all, I'm working on a project that would benefit very much from Python Freetype2 bindings (the Fonty Python project). I don't want to duplicate efforts and wrap the library again if we don't...
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
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
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
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
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.