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  

Make current option group choice default



 
 
Thread Tools Display Modes
  #1  
Old February 12th, 2010, 06:31 AM posted to microsoft.public.access.forms
prairiewind via AccessMonster.com
external usenet poster
 
Posts: 48
Default Make current option group choice default

I have been wanting to make the current option group choice the default the
next time a user opens a form. I don't want them to choose all the options
every time they print a report (option groups on form that loads at report
open determines layout, font type, size).

I getting myself confused in the effort to get this accomplished, so any
pointers, ideas, suggestions, commandments, etc. would be appreciated.

Jeff

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/201002/1

Ads
  #2  
Old February 12th, 2010, 09:32 AM posted to microsoft.public.access.forms
Jeanette Cunningham
external usenet poster
 
Posts: 2,190
Default Make current option group choice default

To do this, you need to save the users choices for each option group at the
time the print button is clicked.
You can save each choice on a hidden form that is always open, such as a
switchboard form that never closes, or one created specially.
Put a text box on the hidden form - one textbox for each option group.

When the print button is pressed, your code can go
With Me.Forms!NameOfHiddenForm
.txtA = Me.OptionGroupA
.txtB = Me.OptionGroupB
.txtC = Me.OptionGroupC
End With


Next time the report form opens, your code can go

With Me.Forms!NameOfHiddenForm
Me.OptionGroupA = .txtA
Me.OptionGroupB = .txtB
Me.OptionGroupC = .txtC
End With

Another option instead of using a hidden form is to use a table to store the
values.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


"prairiewind via AccessMonster.com" [email protected] wrote in message
news:[email protected]
I have been wanting to make the current option group choice the default the
next time a user opens a form. I don't want them to choose all the
options
every time they print a report (option groups on form that loads at report
open determines layout, font type, size).

I getting myself confused in the effort to get this accomplished, so any
pointers, ideas, suggestions, commandments, etc. would be appreciated.

Jeff

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/201002/1



 




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 04:18 AM.


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