Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

DTPicker losing Control Source

Posted on 2002-05-09
3
Medium Priority
?
557 Views
Last Modified: 2007-12-19
I have an Access 97 app which uses the MS DTPicker control for updating a Date/Time field.  The DTPicker control is bound to a field named EffectiveDate.  The database resides on an admittedly inadequate server and is used daily by 6 users.

Occasionally (maybe once every couple of months but recently much more frequently) the DTPicker control loses its Control Source property value.  It is suddenly no longer bound to the EffectiveDate field.  <eerie music plays in background>

Any ideas?  I will gladly provide additional info upon request.
0
Comment
Question by:lmerrell
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
dougp23 earned 400 total points
ID: 6999345
Well, if you just want a bandaid, write a little script that fires off say every 30 minutes or so.  The script would simply tell the control what its control source is.  (I did this once with a combox box.  Required a form to be open, as I tied it to the form's timer control, but you can use TIME to evaluate how many seconds have passed, and after , say 5000 seconds, tell the control what its control source is again.)  You wouldn't get an error, even if it already had the right control source and you told it the same thing again.  
0
 
LVL 7

Author Comment

by:lmerrell
ID: 6999502
That could be of some temporary help, doug.  Although, I would probably put the Control Source update in the Current event of the form which would guarantee its update more often.  But, I would really like to figure out what is causing this behavior in the first place.

I will post you an additional question with points for your bandaid solution later.  I'll post a link to the Q here.
0
 
LVL 7

Author Comment

by:lmerrell
ID: 7008686
Well, I haven't had any other input and the updating of the Control Source in the Current event appears to be working quite well so the points are yours Doug.

Thanks for the input!

Guido
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question