Normal Topic XLookup on the same application? (Read 399 times)
dhopkins
Member
*
Offline



Posts: 47
Joined: Aug 20th, 2007
XLookup on the same application?
Oct 24th, 2007 at 4:34pm
Print Post Print Post  
Hi,
The system I was working on had 2 separate applications, with 2 seperate databases (orders and clients). I realized that there was no reason for them to be separated so I merged them into the same app. It worked but not I have a question about re-doing the XLOOKUP commands.

The old app would use XLOOKUP to pull in client data based on the account #.
for example:
COMPANY ORDERING= @XLOOKUP("D:\Sesame Data\clients.db",ACCT #,"ACCT #","COMPANY")

But now that the clientdb is in the same app as the order db, how would I rewrite this part? Is an Xlookup even needed since they're already together?

thanks,
D
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: XLookup on the same application?
Reply #1 - Oct 24th, 2007 at 5:45pm
Print Post Print Post  
Use @Filename or @FN and include the form name on the external key field.
COMPANY ORDERING= @XLOOKUP(@FN, ACCTNo, "Clients!ACCTNo", "COMPANY")
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
dhopkins
Member
*
Offline



Posts: 47
Joined: Aug 20th, 2007
Re: XLookup on the same application?
Reply #2 - Oct 25th, 2007 at 6:06pm
Print Post Print Post  
Thanks. I thought there was a command that would do  the lookup without DB reloading. I used your suggestion and it worked.

D
  
Back to top
 
IP Logged