Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alias table not recognized by Select Expert 2

Status
Not open for further replies.

NewToCR

Programmer
Oct 20, 2005
54
US
I have Cus table and Cus1 alias table.
When want to put criterias in Select Expert it only recognizes one table. How to go by?
 
What do you mean "How to go by?"?

Did you ever answer dgillz (Instructor) as to your "Butterfly" question? (in another post).

DataDog
'Failure Is Not An Option'
 
My 'butterfly' question was brilliantly answered by IdoMillet and Turkbear.There are stars in my post which meant I am OK.

How to go by meant that I do not know what to do with this. I though about it and decided to write a view where I can POINT to actual table AND alias table.
But is this a common problem? Alias table gets neglrcted by Select Expert?

DataDog, thanks for asking.
 
Hi,
Since the Alias is the same table by another name, any criteria applied to it would be applied to the actual table so perhaps CR just shows the 'real' one for selection criteria use..



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Alias tables do appear in the select expert when I test it. Are you sure you scrolled down the field list to see all the tables available?

-LB
 
Hi,
Same here..Both are displayed..CR 10





[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
I know...but try to use Select Expert and put different criteria to the same field of each table.
Here is where trick is LOL
 
Hi,
What 'trick' ( other than an odd thing to do)..
It allows me to do that, but, if the criteria conflict, no data will be returned..

Remember there is only 1 table involved in the report so if
you say Table1.dept = '123' and Table1Alias.dept='234' then no records will be returned...A department cannot be both 123 and 234.( using OR, however, will return 2 records - assuming unique dept_nbrs)

What are you trying to accomplish?
Perhaps some example data and the results you want..







[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
I can select two different values of the same field from each table, EXCEPT when trying to select different values on the LINKING field. The select expert recognizes both tables and let's me choose the two different values, but no records appear. If this is what is happening to you, you are probably not linking on the field that makes sense for your report. Maybe you should discuss the logic of the report you are trying to implement.

-LB
 
lbass...you are probably correct. We are implementing new system and I returned from client site today and I was told we are going to have these 'problem' fields combined into one table (I didn't know we can 'order' that).
So...whatever happens I appreciate your effort to solve my problem.
 
Try using Report > Selection Formuals > Record Selection, for more flexability. Select Expert is OK when you are starting out, but coding the commands yourself is quicker once you know what you're doing.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top