PC Review


Reply
Thread Tools Rate Thread

Clearing a field

 
 
PJ
Guest
Posts: n/a
 
      25th May 2010
I have a command button to clear a search a (Check box) but sometimes users
forget to clear the search. When other users use that form the check boxes
are not cleared. How do I code the form so when they exit the check box
clears.

Thank You In Advance!!
 
Reply With Quote
 
 
 
 
Arvin Meyer [MVP]
Guest
Posts: n/a
 
      25th May 2010
Other users?

There should be no other users. NEVER share the forms in an Access database.
You need to split the database into a back-end that contains all the tables
and a front-end that contains everything else. Link the tables in the
back-end to the front-end, and put a copy of the front-end on each user's
workstation. Failure to work that way in a multi-user environment will
eventually result in a corrupted database.

Text can be cleared using the Enter event on the textbox:

Private Sub txtSearch_Enter()
Me.txtSearch = ""
End Sub
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.accessmvp.com
http://www.mvps.org/access
Co-author: "Access 2010 Solutions", published by Wiley


"PJ" <(E-Mail Removed)> wrote in message
news1A29874-2EEF-4A8A-839E-(E-Mail Removed)...
>I have a command button to clear a search a (Check box) but sometimes
>users
> forget to clear the search. When other users use that form the check boxes
> are not cleared. How do I code the form so when they exit the check box
> clears.
>
> Thank You In Advance!!



 
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
Clearing content when field changes spcscooter via AccessMonster.com Microsoft Access Form Coding 3 13th Mar 2008 05:22 PM
Clearing a field =?Utf-8?B?RWR3aW4gVC4=?= Microsoft Access 2 7th Sep 2006 03:09 PM
Clearing date Field =?Utf-8?B?QlI=?= Microsoft Access VBA Modules 5 9th Jan 2005 11:49 PM
Clearing Field after Duplicate Bob Microsoft Access Database Table Design 3 9th Apr 2004 06:34 PM
clearing search field Joe Windows XP General 1 19th Dec 2003 03:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:05 PM.