PC Review


Reply
Thread Tools Rate Thread

Click to not show form again.

 
 
=?Utf-8?B?RS1tYWlsIHJlcG9ydCB1c2luZyBMb3R1cyBOb3Rl
Guest
Posts: n/a
 
      5th Nov 2007
Hi,

I have a form when new users get's access to the front end of the database a
form pop-up to ask user if they want to go to tutorial. I want a check box
in the form so that when user click on check box this form will not show up
again when the user start the front end again. How do i do that?


 
Reply With Quote
 
 
 
 
fredg
Guest
Posts: n/a
 
      5th Nov 2007
On Mon, 5 Nov 2007 10:09:03 -0800,
(E-Mail Removed) wrote:

> Hi,
>
> I have a form when new users get's access to the front end of the database a
> form pop-up to ask user if they want to go to tutorial. I want a check box
> in the form so that when user click on check box this form will not show up
> again when the user start the front end again. How do i do that?


You can adapt the method used in the StartUp form in the
Northwind.mdb sample database that ships with Access.

Or you can simply add a table to your database.
Table name "ShowForm"
Add 1 field named "ToStart", Yes/No datatype, check box.

On the Form, set this table as the form's record source. *
Set the field [ToStart] as the check box's Control Source. *

Code the Form's OpenEvent:
Cancel = [ToStart] = -1 Then

If the check box is checked, the form will not open.

Anytime you modify the database, simple reset the field to 0 (manually
or by code).
The form will now re-appear until checked.

* If you can't make the table the form's record source, delete the
control source from the check box.
Simply code the now unbound check box AfterUpdate event:

CurrentDb.Execute "Update ShowForm set ShowForm.ToStart = -1;",
dbFailOnError

Code the Form's Open event:
Cancel = DLookUp("[ToStart]","ShowForm")=-1

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 
Reply With Quote
 
=?Utf-8?B?RS1tYWlsIHJlcG9ydCB1c2luZyBMb3R1cyBOb3Rl
Guest
Posts: n/a
 
      5th Nov 2007
Hi Fredg,

Thanks for the swift response. I don't have any data attached to the form.
The form is just like a splash pop-up. I just want to add a check box for
the user to click to check it so that the splash pop-up will not show again
when the user open the front end. Hope I clearified it more.

"fredg" wrote:

> On Mon, 5 Nov 2007 10:09:03 -0800,
> (E-Mail Removed) wrote:
>
> > Hi,
> >
> > I have a form when new users get's access to the front end of the database a
> > form pop-up to ask user if they want to go to tutorial. I want a check box
> > in the form so that when user click on check box this form will not show up
> > again when the user start the front end again. How do i do that?

>
> You can adapt the method used in the StartUp form in the
> Northwind.mdb sample database that ships with Access.
>
> Or you can simply add a table to your database.
> Table name "ShowForm"
> Add 1 field named "ToStart", Yes/No datatype, check box.
>
> On the Form, set this table as the form's record source. *
> Set the field [ToStart] as the check box's Control Source. *
>
> Code the Form's OpenEvent:
> Cancel = [ToStart] = -1 Then
>
> If the check box is checked, the form will not open.
>
> Anytime you modify the database, simple reset the field to 0 (manually
> or by code).
> The form will now re-appear until checked.
>
> * If you can't make the table the form's record source, delete the
> control source from the check box.
> Simply code the now unbound check box AfterUpdate event:
>
> CurrentDb.Execute "Update ShowForm set ShowForm.ToStart = -1;",
> dbFailOnError
>
> Code the Form's Open event:
> Cancel = DLookUp("[ToStart]","ShowForm")=-1
>
> --
> Fred
> Please respond only to this newsgroup.
> I do not reply to personal e-mail
>

 
Reply With Quote
 
fredg
Guest
Posts: n/a
 
      5th Nov 2007
On Mon, 5 Nov 2007 12:00:02 -0800,
(E-Mail Removed) wrote:

> Hi Fredg,
>
> Thanks for the swift response. I don't have any data attached to the form.
> The form is just like a splash pop-up. I just want to add a check box for
> the user to click to check it so that the splash pop-up will not show again
> when the user open the front end. Hope I clearified it more.
>
> "fredg" wrote:
>
>> On Mon, 5 Nov 2007 10:09:03 -0800,
>> (E-Mail Removed) wrote:
>>
>>> Hi,
>>>
>>> I have a form when new users get's access to the front end of the database a
>>> form pop-up to ask user if they want to go to tutorial. I want a check box
>>> in the form so that when user click on check box this form will not show up
>>> again when the user start the front end again. How do i do that?

>>
>> You can adapt the method used in the StartUp form in the
>> Northwind.mdb sample database that ships with Access.
>>
>> Or you can simply add a table to your database.
>> Table name "ShowForm"
>> Add 1 field named "ToStart", Yes/No datatype, check box.
>>
>> On the Form, set this table as the form's record source. *
>> Set the field [ToStart] as the check box's Control Source. *
>>
>> Code the Form's OpenEvent:
>> Cancel = [ToStart] = -1 Then
>>
>> If the check box is checked, the form will not open.
>>
>> Anytime you modify the database, simple reset the field to 0 (manually
>> or by code).
>> The form will now re-appear until checked.
>>
>> * If you can't make the table the form's record source, delete the
>> control source from the check box.
>> Simply code the now unbound check box AfterUpdate event:
>>
>> CurrentDb.Execute "Update ShowForm set ShowForm.ToStart = -1;",
>> dbFailOnError
>>
>> Code the Form's Open event:
>> Cancel = DLookUp("[ToStart]","ShowForm")=-1
>>
>> --
>> Fred
>> Please respond only to this newsgroup.
>> I do not reply to personal e-mail
>>


I believe I answered your question.
You can use the method found in the Northwind sample database, or use
the method of adding a table to the database that I mentioned. It does
exactly what you wish to do.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 
Reply With Quote
 
George Nicholson
Guest
Posts: n/a
 
      5th Nov 2007
No matter what you do you need a place to store the status of the checkbox,
so its really a question of how you want to do that.

1) you could change the default value of the checkbox at design level
and then save the form, but that won't work if using Runtime mode. In
addition, the setting would not persist across front-end replacement. This
would generally be considered a poor solution.

(The following alternatives require saving the value and then reading
the value every time the db is opened)

2) you could store the value in a custom database property (as is done
in Northwind) but the user would have to check/uncheck the box every time
the front end is replaced. The saved value wouldn't persist across
frontend replacement.

3) Storing the value in a local table has the same drawbacks as #2

4) you could create a new backend table that would store *each user's*
selection. This has the advantage of 1) not changing if the frontend is
replaced and 2) no matter what machine the user sits down at, the app will
"remember" the user's selection and 3) it would allow you to "reset"
everyone's (or select individuals) selection if you want to force users to
read a revised splash screen with a simple update query to the backend
table.

5) you could store/read the value in the registry with
SaveSetting/GetSetting. This would allow persistance across front end
replacement, but not across machines.

I tend to favor the backend table approach (#4) and I use it to store a
number of settings. Each user might have 4 or 5 records in the table, each
record representing a single setting like "Show Splash" or "LastIDViewed".

--
HTH,
George


"E-mail report using Lotus Notes rather t"
<(E-Mail Removed)> wrote in
message news:41387082-956B-469C-B221-(E-Mail Removed)...
> Hi Fredg,
>
> Thanks for the swift response. I don't have any data attached to the
> form.
> The form is just like a splash pop-up. I just want to add a check box for
> the user to click to check it so that the splash pop-up will not show
> again
> when the user open the front end. Hope I clearified it more.
>
> "fredg" wrote:
>
>> On Mon, 5 Nov 2007 10:09:03 -0800,
>> (E-Mail Removed) wrote:
>>
>> > Hi,
>> >
>> > I have a form when new users get's access to the front end of the
>> > database a
>> > form pop-up to ask user if they want to go to tutorial. I want a check
>> > box
>> > in the form so that when user click on check box this form will not
>> > show up
>> > again when the user start the front end again. How do i do that?

>>
>> You can adapt the method used in the StartUp form in the
>> Northwind.mdb sample database that ships with Access.
>>
>> Or you can simply add a table to your database.
>> Table name "ShowForm"
>> Add 1 field named "ToStart", Yes/No datatype, check box.
>>
>> On the Form, set this table as the form's record source. *
>> Set the field [ToStart] as the check box's Control Source. *
>>
>> Code the Form's OpenEvent:
>> Cancel = [ToStart] = -1 Then
>>
>> If the check box is checked, the form will not open.
>>
>> Anytime you modify the database, simple reset the field to 0 (manually
>> or by code).
>> The form will now re-appear until checked.
>>
>> * If you can't make the table the form's record source, delete the
>> control source from the check box.
>> Simply code the now unbound check box AfterUpdate event:
>>
>> CurrentDb.Execute "Update ShowForm set ShowForm.ToStart = -1;",
>> dbFailOnError
>>
>> Code the Form's Open event:
>> Cancel = DLookUp("[ToStart]","ShowForm")=-1
>>
>> --
>> Fred
>> Please respond only to this newsgroup.
>> I do not reply to personal e-mail
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show or hide columns in form on click Adam Microsoft Access Macros 1 30th Dec 2008 02:16 AM
Show tekst in ppt show only on click when requested =?Utf-8?B?U3RlcGhhbg==?= Microsoft Powerpoint 1 25th Jul 2006 12:40 PM
Can you show the Description entered for each Table Field when you click in a Form Field ? Will Microsoft Access 11 31st Dec 2005 02:46 AM
"find" form: enter text, click button, show results? DLN Microsoft Access Getting Started 3 31st Aug 2004 02:35 PM
IE won't show pictures unless I right click, then left click "show picture" Harvey Windows XP Internet Explorer 1 31st Dec 2003 10:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:32 AM.