dbTalk Databases Forums  

WindowMode argument with the Hidden option.

comp.databases.ms-access comp.databases.ms-access


Discuss WindowMode argument with the Hidden option. in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
fishqqq@hotmail.com
 
Posts: n/a

Default WindowMode argument with the Hidden option. - 04-14-2011 , 08:09 AM






Can anyone tell me if it's possible to use the WindowMode argument to
hide a window and still make changes in the window?

I have a form that i have a macro open a form- update data - then
close again, and i would like the user NOT to see the form open and
close. Is this possible?

thanks
Steve

Reply With Quote
  #2  
Old   
Salad
 
Posts: n/a

Default Re: WindowMode argument with the Hidden option. - 04-14-2011 , 11:01 AM






fishqqq (AT) hotmail (DOT) com wrote:
Quote:
Can anyone tell me if it's possible to use the WindowMode argument to
hide a window and still make changes in the window?

I have a form that i have a macro open a form- update data - then
close again, and i would like the user NOT to see the form open and
close. Is this possible?

thanks
Steve
Does this syntax work
docmd.openform "Test",acNormal,,,,acHidden

Reply With Quote
  #3  
Old   
John Spencer
 
Posts: n/a

Default Re: WindowMode argument with the Hidden option. - 04-14-2011 , 12:10 PM



You could try using the echo method. Be careful and make sure you have
docmd.Echo True execute even if the code fails.

Public Sub HiddenForm()
DoCmd.Echo False
DoCmd.OpenForm "FAQ Details"
'Do stuff here
DoCmd.Close acForm, "FAQ Details"
DoCmd.Echo True
End Sub

There is an echo action available in macros.

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

On 4/14/2011 9:09 AM, fishqqq (AT) hotmail (DOT) com wrote:
Quote:
Can anyone tell me if it's possible to use the WindowMode argument to
hide a window and still make changes in the window?

I have a form that i have a macro open a form- update data - then
close again, and i would like the user NOT to see the form open and
close. Is this possible?

thanks
Steve

Reply With Quote
  #4  
Old   
Access Developer
 
Posts: n/a

Default Re: WindowMode argument with the Hidden option. - 04-14-2011 , 01:08 PM



Making updates by using a macro to open and close a form seems an
ineffective approach. Have you considered simply updating from macros or
code, not by changing data on a form?

You can execute update, append, or delete queries... no form needed... and
avoid the extra overhead of unhiding and hiding the form. With more detail
on what you want to do, possibly someone could help you do this with
macros... I just don't use them... but am one of the many here who could
likely help you accomplish it with VBA code.

Larry Linson
Microsoft Office Access

<fishqqq (AT) hotmail (DOT) com> wrote

Quote:
Can anyone tell me if it's possible to use the WindowMode argument to
hide a window and still make changes in the window?

I have a form that i have a macro open a form- update data - then
close again, and i would like the user NOT to see the form open and
close. Is this possible?

Reply With Quote
  #5  
Old   
Marshall Barton
 
Posts: n/a

Default Re: WindowMode argument with the Hidden option. - 04-14-2011 , 02:20 PM



fishqqq (AT) hotmail (DOT) com wrote:

Quote:
Can anyone tell me if it's possible to use the WindowMode argument to
hide a window and still make changes in the window?

I have a form that i have a macro open a form- update data - then
close again, and i would like the user NOT to see the form open and
close. Is this possible?

As I said in your other thread with this question, I think
the problem is the way you are referencing the form you want
to update.

--
Marsh

Reply With Quote
  #6  
Old   
Roger
 
Posts: n/a

Default Re: WindowMode argument with the Hidden option. - 04-15-2011 , 04:19 AM



On Apr 14, 7:09*am, "fish... (AT) hotmail (DOT) com" <fish... (AT) hotmail (DOT) com> wrote:
Quote:
Can anyone tell me if it's possible to use the WindowMode argument to
hide a window and still make changes in the window?

I have a form that i have a macro open a form- update data - then
close again, and i would like the user NOT to see the form open and
close. Is this possible?

thanks
Steve
if you're just updating data, why do you need a form (especially if
you don't want the user to see it)
just execute an update query

Reply With Quote
  #7  
Old   
fishqqq@hotmail.com
 
Posts: n/a

Default Re: WindowMode argument with the Hidden option. - 04-15-2011 , 03:22 PM



On Apr 14, 2:08*pm, "Access Developer" <accde... (AT) gmail (DOT) com> wrote:
Quote:
Making updates by using a macro to open and close a form seems an
ineffective approach. Have you considered simply updating from macros or
code, not by changing data on a form?

You can execute update, append, or delete queries... no form needed... and
avoid the extra overhead of unhiding and hiding the form. *With more detail
on what you want to do, possibly someone could help you do this with
macros... I just don't use them... but am one of the many here who could
likely help you accomplish it with VBA code.

*Larry Linson
*Microsoft Office Access

fish... (AT) hotmail (DOT) com> wrote in message

news:95a4da67-6c47-4c52-aaf2-f83be4f18d2f (AT) d26g2000prn (DOT) googlegroups.com...

Can anyone tell me if it's possible to use the WindowMode argument to
hide a window and still make changes in the window?

I have a form that i have a macro open a form- update data - then
close again, and i would like the user NOT to see the form open and
close. Is this possible?
thanks Larry,
I'm a lot more comfortable using macros/forms/tables etc then i am
with VBA code - which is why i'm trying to do this this way. I'm going
to try a couple more ideas and if i'm still stuck i may ask for your
help (vba or otherwise) -
tks
Steve

Reply With Quote
  #8  
Old   
Access Developer
 
Posts: n/a

Default Re: WindowMode argument with the Hidden option. - 04-15-2011 , 05:11 PM



The overhead of updating a table by automating a Form with Macros is
substantial.

I have solved the problem of "flashing forms" for some people by directly
updating the table. Where's the data coming from that you are using to
update? You might be able to do it by executing an action query from a
macro.

But, if you're not sufficiently interested to describe what you're trying to
do, not how, then good luck.

Larry Linson
Microsoft Office Access MVP

<fishqqq (AT) hotmail (DOT) com> wrote

On Apr 14, 2:08 pm, "Access Developer" <accde... (AT) gmail (DOT) com> wrote:
Quote:
Making updates by using a macro to open and close a form seems an
ineffective approach. Have you considered simply updating from macros or
code, not by changing data on a form?

You can execute update, append, or delete queries... no form needed... and
avoid the extra overhead of unhiding and hiding the form. With more detail
on what you want to do, possibly someone could help you do this with
macros... I just don't use them... but am one of the many here who could
likely help you accomplish it with VBA code.

Larry Linson
Microsoft Office Access

fish... (AT) hotmail (DOT) com> wrote in message

news:95a4da67-6c47-4c52-aaf2-f83be4f18d2f (AT) d26g2000prn (DOT) googlegroups.com...

Can anyone tell me if it's possible to use the WindowMode argument to
hide a window and still make changes in the window?

I have a form that i have a macro open a form- update data - then
close again, and i would like the user NOT to see the form open and
close. Is this possible?
thanks Larry,
I'm a lot more comfortable using macros/forms/tables etc then i am
with VBA code - which is why i'm trying to do this this way. I'm going
to try a couple more ideas and if i'm still stuck i may ask for your
help (vba or otherwise) -
tks
Steve

Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.