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

"Edit" button on continuous form

Status
Not open for further replies.

CGSB

Programmer
May 23, 2006
35
CA
I am using a continuous form to display data like a datagrid would. All of the text boxes and checkboxes are disable when the form opens.

At the end of each row, I have an "Edit" button. I want this button to enable the textboxes and checkboxes on its relative row. However, when I click the button on one row, it enables the boxes on every row.

How can I make it enable only the boxes on its relative row?
 
You won't be able to open a single row on a continuous form. Normally the solution is to use a pop-up form. If you're using A2k or newer, you can pass along the record's primary key in the OpenArgs argument of the OpenForm method. Then have your pop-up form go to the requested record where the user can update the data.

HTH,
Larry
 
Just out of curiosity, why do you have everything disabled if you want to allow editing?


The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
i am as curios as missinglinq the question is why?
 
I disabled the fields because I don't trust my users with that much data. They could easily uncheck a checkbox or change a comboxes value by erroneously clicking somewhere on the screen. I'm surprised you've never seen this method of safeguarding data before. It's very common in ASP and ASP.NET applications.
 
You could have the edit button open a form with just the selected record ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top