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

Grid that changes the current record in text boxes

Status
Not open for further replies.

hallm

Programmer
Jun 11, 2000
159
US
My form layout is a four tab page frame. The first frame has a grid that contains a list of my records. The other three frames have details for whichever row on the 1st page grid is highlighted. The code I'm using right now only seems to work the first time the form is run, it doesn't seem to work when another record is selected.

LOCATE FOR patient_id = ALLTRIM(THIS.Value)
THISFORM.Refresh

I was putting this in the click event for the actual textbox of the patient_id column. Another thing I'm wanting is for a click anywhere in the entire row to change the record.

Thanks,

Marion
 
SET RELATION can work in this scenario as well as linking your child tables (which are populating the grids in the other 3 frames) to the parent (grid data in the first frame) during the design of your form.

hope this helps. peace! [peace]

kilroy [trooper]
philippines

"If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get one million miles to the gallon, and explode once a year, killing everyone inside."
 
This.Refresh works great. I'm not sure why it works, because I already had a this.refresh on the grid click.

Thanks,

Marion
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top