Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / July 2007

Tip: Looking for answers? Try searching our database.

Read only Form when opened

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gary. - 31 Jul 2007 13:38 GMT
Hi

In need to be able to open a form read only until I select a record from a
combo box

I want to keep from entering the information in the first record that comes
up when I open the form

Thanks
Klatuu - 31 Jul 2007 15:28 GMT
What if it is the first record the user wants to edit?
You can set the AllowAdditions, AllowEdits, AllowDeletions properties to
False.  Then make them true when the user clicks the button.
Signature

Dave Hargis, Microsoft Access MVP

> Hi
>
[quoted text clipped - 5 lines]
>
> Thanks
Gary. - 31 Jul 2007 16:12 GMT
That sounds like it would work

I Estimate for a commercial wood working firm

I use Access to track my jobs and generate Bids

For example I might bid a hotel and need to exclude 300 wood doors and
frames.

So that would go into me exclusion field

I need to make sure that the exclusion is attached to the right job

This all works on a form with a sub form, the main form is information
about the job being bid, Name address and so on the sub form is where the
information is entered about the bid.

If I were to put the exclusion in with the wrong job thin I would be in
major trouble

If it is on the plans and you don’t exclude it then you have to provide it

I wouldn’t want to have to provide 300 doors and frames that I didn’t have
money in the bed for.

All that to say I need to make sure everything about the bid is with the
right job.

Could I set the buttons where every time I change to a new record on the
main form that I would have to reactivate the form before I enter data

Any other ideas would be helpful

Thanks for you help
Klatuu - 31 Jul 2007 16:30 GMT
Yes.  You can use the Form Current event.  Set the properties I listed
previously to False.  Then the command button can turn them back on.

   With Me
       .AllowAdditions = False
       .AllowDeletions = False
       .AllowEdits = False
   End With

For the button change False to true
Signature

Dave Hargis, Microsoft Access MVP

> That sounds like it would work
>
[quoted text clipped - 30 lines]
>
> Thanks for you help
Gary. - 31 Jul 2007 18:59 GMT
> Yes.  You can use the Form Current event.  Set the properties I listed
> previously to False.  Then the command button can turn them back on.
[quoted text clipped - 6 lines]
>
> For the button change False to true

Will this work on a form with a sub form?
Or will it only affect the main form and not the sub form?
Klatuu - 31 Jul 2007 19:08 GMT
It works only on the main form.  If you need to do the subform also, add the
code it.

   With Me
       .AllowAdditions = False
       .AllowDeletions = False
       .AllowEdits = False
       With !MySubformControlName.Form
           .AllowAdditions = False
           .AllowDeletions = False
           .AllowEdits = False
       End With
   End With
   
Signature

Dave Hargis, Microsoft Access MVP

> > Yes.  You can use the Form Current event.  Set the properties I listed
> > previously to False.  Then the command button can turn them back on.
[quoted text clipped - 9 lines]
> Will this work on a form with a sub form?
> Or will it only affect the main form and not the sub form?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.