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

Opening a Read Only Form

Status
Not open for further replies.

SQLSister

Programmer
Jun 18, 2002
7,292
US
DoCmd.OpenForm "frmProposalTools", , , , acFormReadOnly

Has anyone ever run into an instance where the form was still editable after opening it with this command? If so, can you tell me why?

Questions about posting. See faq183-874
 
Are you sure all the following are set to false ?
AllowEdits, AllowDeletions, AllowAdditions

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
If you toggle some of the form properties programatically in some events (open, load, current?) you might loose that setting. Thinking about .AllowEdits, .AllowAdditions

Roy-Vidar
 
Interestingly I did not toggle .allow edits in the OnCurrent event but because it was performing an update to several field values it toggled it underneath. Luckily it turned out to be old code that was no longer needed after revising the underlying query earlier, so I could just take it out. Otherwise I guess I would have had to save the record and then set the form to not allow edits, additions and deletes.

Thanks for the answer guys, I appreciate it.

Questions about posting. See faq183-874
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top