Advertisement

05.22.2008 at 09:34AM PDT, ID: 23425029
[x]
Attachment Details

DTpicker date time picker error when I try to requery

Asked by phmurphy in Access Forms

Greetings,
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?

Thanks,
PatStart Free Trial
Attachments:
 
DTPicker error
 
[+][-]05.23.2008 at 06:02AM PDT, ID: 21631667

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.27.2008 at 06:03PM PDT, ID: 21656934

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Access Forms
Sign Up Now!
Solution Provided By: phmurphy
Participating Experts: 0
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628