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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
#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
|
|||
|
|||
"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
|
|||
|
|||
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 | |
|
|
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 |