Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie question
Message
From
21/11/2005 22:46:50
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Newbie question
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01071036
Message ID:
01071036
Views:
59
Hi everyone;

A newbie question:

I'm trying to create a form which will accept a parameter, and then show a grid with records from a table matching that parameter. So, if I pass a certain customer acct to the form, I'd like to filter the grid to have just those.

-I've put a parameters line in the init of the form.
- I'm assigning the parameter value to thisform.cAcct

I'm not sure how to set the dataenvironment because when I try to set the filter to thisform.cAcct I get an error "Thisform is available only in a method".

I've also tried to use parameterized views or just set the controlsource of the grid to an SQL statement but I'm always getting errors.

Anyone can point me to the right direction?
Thanks everyone,

Alen
Next
Reply
Map
View

Click here to load this message in the networking platform