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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data Environment

Status
Not open for further replies.

audiopro

Programmer
Apr 1, 2004
3,165
GB
Many of my forms use a data environment with relationships between tables. Sometimes it is necessary to change the order of one of the tables'
Is there a restore original data environment option or has this to be coded?

Keith
 
There's nothing automatic. You'll have to remember the original setting and put it back when done (just like SET TALK, SET EXACT, etc.)

You might find it less effort to try this:

USE theTable AGAIN ALIAS otheralias ORDER WHATEVER

This second instance of the table will be in the order you want, but it won't affect the instance held by the DE.
 
You can turn off the relationship with a
set relation off into <<tablename>>

and when needed reset it back with a
Set relation to <expression> into <<childtable>>

check out the help...
 
its simple;
Parent table = Customers
Child Table = Customer_address

select customer
set relation off into customer_address

to reset:
select customer
set relation to <<id>> into customer_address
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top