PC Review


Reply
Thread Tools Rate Thread

Clear Form data withour re-loading form

 
 
jmawebco
Guest
Posts: n/a
 
      28th Sep 2005
I want to clear all data from a form without running the onload event.
Here is the situation;

The form is used to enter date related to a specific training session
into a temp table after selected all the information that is needed
he/she updates the temp table and then the user needs to be able to
enter data related to other training sessions but the form has to be
cleared first. Is there any way I can do this without using the onload
event?

Thanks for any help.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?S2xhdHV1?=
Guest
Posts: n/a
 
      28th Sep 2005


"jmawebco" wrote:

> I want to clear all data from a form without running the onload event.
> Here is the situation;
>
> The form is used to enter date related to a specific training session
> into a temp table after selected all the information that is needed
> he/she updates the temp table and then the user needs to be able to
> enter data related to other training sessions but the form has to be
> cleared first. Is there any way I can do this without using the onload
> event?
>
> Thanks for any help.
>
>

 
Reply With Quote
 
=?Utf-8?B?S2xhdHV1?=
Guest
Posts: n/a
 
      28th Sep 2005
If it is a bound form, go to a new record. If it is unbound, then something
like this should work:
Dim ctl as Control
For Each ctl in Me.Controls
if ctl.ControlType = acTextBox Then
ctl = ""
End If
Next
If you need to clear anything other than text boxes, you can modify this to
your needs.

"jmawebco" wrote:

> I want to clear all data from a form without running the onload event.
> Here is the situation;
>
> The form is used to enter date related to a specific training session
> into a temp table after selected all the information that is needed
> he/she updates the temp table and then the user needs to be able to
> enter data related to other training sessions but the form has to be
> cleared first. Is there any way I can do this without using the onload
> event?
>
> Thanks for any help.
>
>

 
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
Clear data in a FORM row Dave Microsoft Excel Programming 1 27th Sep 2007 10:19 AM
Clear/delete form data =?Utf-8?B?ZGdvbGQ=?= Microsoft Word Document Management 2 8th Aug 2007 02:09 PM
How to Clear a Page with Form Data =?Utf-8?B?Z2VzdWxseQ==?= Microsoft Frontpage 4 24th Sep 2006 02:04 AM
Switchboard usage preventing my form loading data form my database =?Utf-8?B?RWFtb25u?= Microsoft Access Getting Started 4 7th Sep 2006 09:46 PM
Transfer data to form from Excel range upon loading of form. =?Utf-8?B?Um9iIENyYXdmb3Jk?= Microsoft Excel Programming 2 24th Oct 2005 03:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:32 PM.