Non Editable Form With List box

G

Guest

I have a form with a list box to find and display info from a table.
I’d like to have the form “not†editable unless a button is clicked to allow
editing. But, I would like to be able to select another record from the list
box to view the data without having to click the "allow edits" button. But,
once one selection is made; I cannot click on anything in the list box until
I click the “allow edits†button. Any suggestions on how to make the fields
in the form “not†editable and leave the list box editable?
 
G

Guest

Rather than set the AllowEdits property of the form to No (False), Set the
Locked property of each control to Yes (True) except for the list box. Then
change the code behind the button to change the Locked property of each
control to False.
You will also want to put code in the form's Current event to lock them for
each record.
 
G

Guest

Thank you, I'll give this a try

Klatuu said:
Rather than set the AllowEdits property of the form to No (False), Set the
Locked property of each control to Yes (True) except for the list box. Then
change the code behind the button to change the Locked property of each
control to False.
You will also want to put code in the form's Current event to lock them for
each record.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top