troubleshooting Question

DTpicker date time picker error when I try to requery

Avatar of phmurphy
phmurphyFlag for United States of America asked on
Microsoft Access
2 Comments1 Solution442 ViewsLast Modified:
Below is the question I figured out by using Me.requery.  However, now I get an error related to the DTPicker when I do the requery.  Here is the code that I get stuck on.
    Me.DTPicker4 = Me.SDate
The error message screen shot is attached.

I have a form with a button control that
1. deletes all of the records in the tables that the form is using (while the form is open)
2. imports those same tables from another .mdb. giving each table a different name
3. updates the tables the form uses by linking to the imported tables
4. deletes the imported tables.
When I look at the data entry controls, they all have the text "#Deleted" in them and the form doesn't function.  If I close the form and reopen it, everything is as it should be.

I suspect that I somehow need to "reset" the form.  How do I do that using VBA in the button control?


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros