473,503 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

selecting a value based upon 2 columns

3 New Member
HI gurus,
i need to select a value based upon 2 columns.for instance,i have table A and Table B where Table A has 2,3,4,5 values and Table B has D,E,F,G,H,I,J,K L,M which is related to Table A in such a way that 2-Dand 3-E,F,Gand 4-H,I,J and 5-K,L,M. i need to select a value in Table B where Table A value is 2.thanks in advance
Sep 26 '07 #1
3 1521
gits
5,390 Recognized Expert Moderator Expert
hi ...

please post some code you already have and explain where you have problems with it ...

kind regards
Sep 26 '07 #2
ajaypaidi
3 New Member
hi ...

kind regards
Expand|Select|Wrap|Line Numbers
  1. var temp1=ActiveDocument.Sections["Results Gender Proflie Matrix"].Limits["Business Level"].SelectedValues.Count;
  2. Alert(temp1);
  3. var temp2=ActiveDocument.Sections["Results Gender Proflie Matrix"].Limits["Business Descr"].AvailableValues.Count;
  4. Alert(temp2);
  5. for(var j=1;j<=temp1;j++)
  6. {
  7. for(var k=1;k<=temp2;k++)
  8. {
  9.   if(ActiveDocument.Sections["Results Gender Proflie Matrix"].Limits["Business Level"].SelectedValues.Item(j)==2)
  10. {
  11. Alert(k);//what is the statement i should write here.the code below is faulty.
  12. var test1=ActiveDocument.Sections["Results Gender Proflie Matrix"].Limits["Business Descr"].SelectedValues.Item(k);
  13. Alert(test1);
  14. //i need  the above value.
  15. }
  16. }
  17. }/*
Sep 26 '07 #3
acoder
16,027 Recognized Expert Moderator MVP
Please use code tags when posting code:

[CODE=javascript]
JavaScript code here...
[/code]
Sep 26 '07 #4

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

Similar topics

0
4552
by: Punky | last post by:
Hi all, I've gotten a long way with my application, but now it's generating an error to which I know no response. I hope any of you can (and will) help me. Below is the code. It's a simple piece...
5
3335
by: Axial | last post by:
Question: How to select columns from Excel-generated XML when some cells are empty. I've found examples where rows are to be selected, but I can't seem to extrapolate from that to selecting...
2
1903
by: Robert | last post by:
Hi All, I'm trying to solve this for a few days now and I just can't figure it out... I have three tables set up, I'll simplify them for this question: Table 1: HOTELS Columns: HOTEL_ID,...
4
1593
by: remote89 | last post by:
Hi experts, I have been trying to limit the table rows in the following situation, any suggestions will be appreciated. we have table called tempTb has columns id, c_id, c_name, rating, date...
3
2814
by: klawiter | last post by:
Greetings, I have a table with two columns. On my form, I have a combo field that displays the contents of the first column. Upon selecting an item in this combo field, I would like to then...
0
2631
by: Amber | last post by:
There are times when you will need to highlight or otherwise modify the contents of a particular DataGrid row-column value based upon the value in the column. In this example we will select the...
9
1233
by: CCORDON | last post by:
Hi, I have 2 tables, One containing a list of Companies (ID, Name) Another Containing a list of companies a user has acces to (IdUser, IdCompany) The question is how can I load all the companies...
0
8621
by: | last post by:
I am testing the following piece of code: Is it possible to list the row number containing the checked box? After checking the desired box, I would want a message box to popup listing the row...
5
1741
by: hollyquinn | last post by:
Hi I am working with a web application where I am selecting values from a SQL Server 2005 database and then loading the values into different controls on my page. Most of the values load with no...
0
7199
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
7323
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...
1
6984
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
7453
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
5576
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
4670
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3151
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
732
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
377
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.