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

Text Box value = datatable.childtable.value based on relation??

3
I have a typed dataset which I am populating using fill methods based on stored procedures.

I have a form which contains a summary list of records and when a record is selected the detail of that record opens in another form.

On opening this second form, I am filling the main table of my dataset with the one record I am interested in, but then also filling a number of 'reference' tables, such as users, which relates to the CreatedById in my main table.

I am binding controls on my form to the main table, but I also have some controls that I do not wish to bind to a particular column, but wish to display data from the related user table such as FirstName + Surname etc.

Can someone tell me how I can programatically do the following:-

txtCreatedBy = tblParent.relation.childrecord.fieldvalue

If I bind the text box, I get a list of tables in my dataset, where I can select my main table, then select the foreign key name and then select the fieldname from that relation and this would display that column, but I need to display a combination of columns and they should not be bound, as I do not wish to update them.

Am I going about this the wrong way? Should I be getting one datatable with all the information in that I need to display (including related descriptions) rather than using relations to link to it?

Any help would be greatly appreciated.
Feb 27 '08 #1
0 1054

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

Similar topics

40
by: Zach | last post by:
Can someone please explain what this means and illustrate the difference with some code. Thanks, Zach
1
by: amraam35 | last post by:
Here is the problem. I have made a log in script that prompts you to log in with a username and password as the "splash screen" It is an unbounded forum that checks that the username and password...
1
by: bbasberg | last post by:
Hi, I am wondering how to get a value from one column based on another, using visual basic for applications. Here are the criteria: The first column contains status and we want the next row in...
5
by: ApexData | last post by:
I have a bound textbox called txtMyBox with the current string value of "200". Once the user enters the textbox, and while the user is still in the textbox, I would like to check the changed value...
2
by: gert | last post by:
Can you replace this->value with *this.value in c ?
1
by: Bigdaddrock | last post by:
I have a form, containing three text boxes: ZIP, ZIPCODE, and TAXCODE. The first is a nine digit zip code. Using a SetValue Macro, I am able to place a value in ZipCode from Zip via the following...
10
by: Vivekneo | last post by:
Hi I am very new to web programming, trying to achieve a task, I have a form with 3 dropdown box and a text field(which is readonly). My problem now is, after selecting the above 3 dropdown boxes,...
1
by: Ronn L | last post by:
I have a project where I need to get all text after a specific value until that value is found again. Example... Source file has the following: File found: myfile1.ron File found:...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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:
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
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...

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.