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

parametrized views

Status
Not open for further replies.

Nifrabar

Programmer
Mar 16, 2003
1,343
NL
Hi!
On a form in a parametrized view I have
....
where table.nId = ?gnID

So I use a global as condition for the subset.
Can that also be done with a formproperty?

The disadvantage of using a global is that once there should be more forms instanciated they all will relay on that global. So Formproperty would more fit.
But.... I did not got that to work.

Any idea?

-Bart
 
in the context of the sql running, THISFORM cannot be referenced, therefor it didn't work out.

Use a local variable. The parameter is used at query time only, so the var does not need to exist as long as the view exists, only each timy you USE it or you requery it.

So you could store the parameters in form properties, but then each time whn using or requerying the view would copy those properties to local vars.

Bye, Olaf.
 
Thanks Olaf
Going to follow your advice.
KR
-Bart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top