phmurphy
asked on
DTpicker date time picker error when I try to requery
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,
Pat
DTpickerError.doc
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,
Pat
DTpickerError.doc
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER