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

selecting records from a grid

Status
Not open for further replies.

kstart

Programmer
Dec 25, 2004
21
US
I have a grid in a form that reflects all of my reports. I need to be able to doubleclick on the first field in the grid which is text1 under column1 in the grid. I have placed a DO FORM in it's doubleclick event and it does start the correct entry form however I am trying to figure out how to make the form open using the report number value that is in text1 under column1 in the grid. I have the form but just cant figure out how to select the record. Any help is appreciated, thanks.
 
That might work with the WITH this.value but I get an eror saying "No Parameter statement is found" so being the new kid I am still lost.
 
I get an eror saying "No Parameter statement is found"

You'll need an LPARAMETERS statement in the Init method of the form to accept the parameter. The error you've got is arising because the form is getting a parameter but doesn't know what to do with it.

It's explained in Help under "parameters, passing data to forms".

Geoff Franklin
 
With what Geoff wrote, create a custom form property to hold the passed parameter and store it during the form init. When the init exits all it's varibles go out of scope and are destroyed.

Regards,

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top