Normal Topic @XuserSelect question (Read 983 times)
digimom1962
Junior Member
**
Offline


Natalie Gann

Posts: 92
Location: here
Joined: Nov 26th, 2004
@XuserSelect question
Oct 13th, 2006 at 9:42pm
Print Post Print Post  
I am editing something I wrote months ago. It does what I asked it to but apparently I asked it to do the wrong thing Huh

If work_ordered = "delivery nc"


then
     {

           le14 = 0
     }

if work_ordered = "Tune & Check"

then

     {
     
                  le14 = @xuserselect("c:\sesame\data\prices.DB", "areas!Location:")

     }

It pulls up a list of the Locations just fine. What I wanted to do from here is to access the information for that location. Louisville tunings cost less than Bowling Green tunings (there is a whole list of services for each location) I'm sure I have seen something similar but all I can find now is pulling up comma seperated listings, alphabetized and everything. I MIGHT have 5 locations so I really don't need them alphabetized everytime. I am doing it this way so the person that sets the prices doesn't have to get into the programming to change them and they don't have to involve me everytime something goes up.

If I have overlooked something easy or obvious feel free to point me in the right direction Wink

Thanx!
  

So much time and so little to do . . . strike that, reverse it.
Back to top
YIM YIM  
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: @XuserSelect question
Reply #1 - Oct 16th, 2006 at 2:43pm
Print Post Print Post  
Hello,

Let me just be sure that I understand you. After the data entry person selects a location from the list, you want to get the price that that location has to pay for a tuning.

Is that correct?

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
carsten
Junior Member
**
Offline


Carpe Diem

Posts: 74
Location: Germany
Joined: Aug 24th, 2005
Re: @XuserSelect question
Reply #2 - Oct 20th, 2006 at 11:09am
Print Post Print Post  
Hello,

maybe XUserSelectR is the function you are looking for.

  

Carsten&&The Houseman&&"Smiling improves your face value"&&"A Clean House is a Sign of a Wasted Life"&&"Rather Big and Hard then Micro and Soft"
Back to top
 
IP Logged
 
digimom1962
Junior Member
**
Offline


Natalie Gann

Posts: 92
Location: here
Joined: Nov 26th, 2004
Re: @XuserSelect question
Reply #3 - Oct 20th, 2006 at 2:52pm
Print Post Print Post  
Quote:
Hello,

Let me just be sure that I understand you. After the data entry person selects a location from the list, you want to get the price that that location has to pay for a tuning.

Is that correct?

-Ray
Correct. It might also be a move, rental etc. I may have gone about it entirely wrong. (quite likely actually[smiley=rolleyes.gif])




carsten wrote on Oct 20th, 2006 at 11:09am:
Hello,

maybe XUserSelectR is the function you are looking for.


Might be, have to look that one up.  It is so long between when I work on these things I forget bits. Embarrassed
  

So much time and so little to do . . . strike that, reverse it.
Back to top
YIM YIM  
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: @XuserSelect question
Reply #4 - Oct 20th, 2006 at 3:12pm
Print Post Print Post  
Hello digimom,

Code
Select All
le14 = @xuserselect("c:\sesame\data\prices.DB", "areas!Location:")
Price_Element = @XLookUp("c:\sesame\data\prices.DB", le14, "areas!Location:", "Price_Element_in_prices") 



You will need to replace Price_Element with the name of the element on the form that you want the price data to be filled into, and replace Price_Element_in_prices with the name of the element in the prices.DB file that has the data that you want returned for that location.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
digimom1962
Junior Member
**
Offline


Natalie Gann

Posts: 92
Location: here
Joined: Nov 26th, 2004
Re: @XuserSelect question
Reply #5 - Oct 20th, 2006 at 3:20pm
Print Post Print Post  
Smiley A toast! Thank you.
  

So much time and so little to do . . . strike that, reverse it.
Back to top
YIM YIM  
IP Logged