A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Change acMode



 
 
Thread Tools Display Modes
  #1  
Old October 7th, 2009, 02:07 AM posted to microsoft.public.access.forms
mike_n_va
external usenet poster
 
Posts: 1
Default Change acMode

I have a form that I open (DoCmd.OpenForm) initially set
acFormReadOnly. I have a cmdButton "Update" and want to change mode of
the form to 'edit' until the user moves to the next record of previous
(changes the record pointer.

Just new to access and don't have much experience with the commands
and usage. thanks for the help.
  #2  
Old October 7th, 2009, 04:33 AM posted to microsoft.public.access.forms
Tom van Stiphout[_2_]
external usenet poster
 
Posts: 1,653
Default Change acMode

On Tue, 6 Oct 2009 18:07:02 -0700 (PDT), mike_n_va
wrote:

That's not the best way to do it. Rather open the form normally and in
Form_Open you can write:
Me.AllowEdits = False
and in your buttonclick, write:
Me.AllowEdits = True.

There are a few more AllowXxxx properties. Consider if you want to set
them as well.

-Tom.
Microsoft Access MVP


I have a form that I open (DoCmd.OpenForm) initially set
acFormReadOnly. I have a cmdButton "Update" and want to change mode of
the form to 'edit' until the user moves to the next record of previous
(changes the record pointer.

Just new to access and don't have much experience with the commands
and usage. thanks for the help.

  #3  
Old October 9th, 2009, 01:04 PM posted to microsoft.public.access.forms
mike_n_va[_2_]
external usenet poster
 
Posts: 1
Default Change acMode

Thanks Tom -

I found this solution and combined it with another...
"...until the user moves to the next record ..."
Here I used the Form_Current() and a condition:
If Me.AllowEdits = True Then
Me.AllowEdits = False
...

This works well.
I would also like to dynamically change the qry based on the selection form
the MainMenu. I use the same form for three options, Project In-work,
Projects Unassigned and Completed Projects. Projects unassigned is where the
(boss) can initiate projects (at the business level) and hold them until a PM
and staff are available to develop. Once the PM is assigned, the Project is
marked "Active" and goes into 'In-work'. There the PM manages the data until
'complete.'
Each form has a slightly different menu option at the top of the (same)
form. Unassigned is the only place you can 'start' a new project. This
button is NOT on the 'In-work' Form, the form-data is the same for all three.
I like your idea of assigning the methods at Form_Open.
Original programmer used a lot of macros and I am transitioning to code.
Eventually want to implement ADO access to a remote MS Access data and allow
simultaneous access to the program with shared access and record locking on
the database.
I'm learning a lot and enjoy the new chanllenge, thanks Tom.

"Tom van Stiphout" wrote:

On Tue, 6 Oct 2009 18:07:02 -0700 (PDT), mike_n_va
wrote:

That's not the best way to do it. Rather open the form normally and in
Form_Open you can write:
Me.AllowEdits = False
and in your buttonclick, write:
Me.AllowEdits = True.

There are a few more AllowXxxx properties. Consider if you want to set
them as well.

-Tom.
Microsoft Access MVP


I have a form that I open (DoCmd.OpenForm) initially set
acFormReadOnly. I have a cmdButton "Update" and want to change mode of
the form to 'edit' until the user moves to the next record of previous
(changes the record pointer.

Just new to access and don't have much experience with the commands
and usage. thanks for the help.


  #4  
Old October 9th, 2009, 01:19 PM posted to microsoft.public.access.forms
mike_n_va[_3_]
external usenet poster
 
Posts: 1
Default Change acMode

I think I just solved my own problem...

If I make the menus options of each selection (selected from the MainMenu)
the main_form and have the project_data_form a subform, ideally, I will only
have to maintain one instance of the form with the data fields on it... I
also have subforms to the projects_data_main_form, guess they will be
subsubforms? Anything to watch out for here??? This is kinda new to me...

thanks, mike

"mike_n_va" wrote:

Thanks Tom -

I found this solution and combined it with another...
"...until the user moves to the next record ..."
Here I used the Form_Current() and a condition:
If Me.AllowEdits = True Then
Me.AllowEdits = False
...

This works well.
I would also like to dynamically change the qry based on the selection form
the MainMenu. I use the same form for three options, Project In-work,
Projects Unassigned and Completed Projects. Projects unassigned is where the
(boss) can initiate projects (at the business level) and hold them until a PM
and staff are available to develop. Once the PM is assigned, the Project is
marked "Active" and goes into 'In-work'. There the PM manages the data until
'complete.'
Each form has a slightly different menu option at the top of the (same)
form. Unassigned is the only place you can 'start' a new project. This
button is NOT on the 'In-work' Form, the form-data is the same for all three.
I like your idea of assigning the methods at Form_Open.
Original programmer used a lot of macros and I am transitioning to code.
Eventually want to implement ADO access to a remote MS Access data and allow
simultaneous access to the program with shared access and record locking on
the database.
I'm learning a lot and enjoy the new chanllenge, thanks Tom.

"Tom van Stiphout" wrote:

On Tue, 6 Oct 2009 18:07:02 -0700 (PDT), mike_n_va
wrote:

That's not the best way to do it. Rather open the form normally and in
Form_Open you can write:
Me.AllowEdits = False
and in your buttonclick, write:
Me.AllowEdits = True.

There are a few more AllowXxxx properties. Consider if you want to set
them as well.

-Tom.
Microsoft Access MVP


I have a form that I open (DoCmd.OpenForm) initially set
acFormReadOnly. I have a cmdButton "Update" and want to change mode of
the form to 'edit' until the user moves to the next record of previous
(changes the record pointer.

Just new to access and don't have much experience with the commands
and usage. thanks for the help.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:03 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.