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  

#Deleted flashes by - can I get rid of it?



 
 
Thread Tools Display Modes
  #1  
Old January 24th, 2005, 05:49 PM
MargaretM
external usenet poster
 
Posts: n/a
Default #Deleted flashes by - can I get rid of it?

I have a form that is gets new data to fill the a temporary data table under
the form each time the user clicks on the "Next Week" button. Each time the
form is requeried after the old data is deleted and the new data fills the
table the words "#Deleted" fill the fields for an instant. The correct data
fills in quickly but the user is a little bothered by the #Deleted flashing
by. Is there a way not have the form refresh in between the delete of the
data and the refreshing of the new data?

Thanks,
Margaret

  #2  
Old January 25th, 2005, 01:42 AM
Dirk Goldgar
external usenet poster
 
Posts: n/a
Default

"MargaretM" wrote in message

I have a form that is gets new data to fill the a temporary data
table under the form each time the user clicks on the "Next Week"
button. Each time the form is requeried after the old data is
deleted and the new data fills the table the words "#Deleted" fill
the fields for an instant. The correct data fills in quickly but the
user is a little bothered by the #Deleted flashing by. Is there a
way not have the form refresh in between the delete of the data and
the refreshing of the new data?

Thanks,
Margaret


I haven't tried these out, but here are a few approaches:

1. Before deleting the current set of records, filter the form so that
it shows no records. Then after loading the new set of records, clear
the filter. For example:

Me.Filter = "False"
Me.FilterOn = True

' ... code to delete and reload goes here ...

Me.FilterOn = False
Me.Filter = ""

2. Temporarily unbind the form by clearing its RecordSource property,
then restore it after reloading the records. For example,

Me.RecordSource = ""

' ... code to delete and reload goes here ...

Me.RecordSource = "SELECT * FROM MyTempTable"

3. Turn Application.Echo off while you reload the table, then turn it on
again. For example,

Application.Echo False

' ... code to delete and reload goes here ...

Application.Echo True

If you use that last approach, be sure to have good error-handling in
place so that no error can occur and leave Echo set to False.


--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


  #3  
Old January 28th, 2005, 04:23 AM
MargaretM
external usenet poster
 
Posts: n/a
Default

Thanks, Dirk. I appreciate the ideas. I like the last one best but I will
try all 3 today.

Margaret


"Dirk Goldgar" wrote:

"MargaretM" wrote in message

I have a form that is gets new data to fill the a temporary data
table under the form each time the user clicks on the "Next Week"
button. Each time the form is requeried after the old data is
deleted and the new data fills the table the words "#Deleted" fill
the fields for an instant. The correct data fills in quickly but the
user is a little bothered by the #Deleted flashing by. Is there a
way not have the form refresh in between the delete of the data and
the refreshing of the new data?

Thanks,
Margaret


I haven't tried these out, but here are a few approaches:

1. Before deleting the current set of records, filter the form so that
it shows no records. Then after loading the new set of records, clear
the filter. For example:

Me.Filter = "False"
Me.FilterOn = True

' ... code to delete and reload goes here ...

Me.FilterOn = False
Me.Filter = ""

2. Temporarily unbind the form by clearing its RecordSource property,
then restore it after reloading the records. For example,

Me.RecordSource = ""

' ... code to delete and reload goes here ...

Me.RecordSource = "SELECT * FROM MyTempTable"

3. Turn Application.Echo off while you reload the table, then turn it on
again. For example,

Application.Echo False

' ... code to delete and reload goes here ...

Application.Echo True

If you use that last approach, be sure to have good error-handling in
place so that no error can occur and leave Echo set to False.


--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)



 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending deleted messages to the deleted message folder CASE1212 General Discussion 3 September 10th, 2004 01:00 AM
Emails incorrectly delivered into Deleted Items! (Worrying!) Spamfree! Outlook Express 7 September 4th, 2004 02:32 AM
Recovering deleted email by date deleted Gene General Discussion 1 August 11th, 2004 01:17 AM
'Hard Deleted' item retrieval Cody General Discussion 1 August 4th, 2004 01:52 PM
Save IMAP messages to Deleted Items in Outlook 2003? Diane Poremsky [MVP] General Discussion 0 July 16th, 2004 09:17 PM


All times are GMT +1. The time now is 10:49 AM.


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