Solved

DTPicker losing Control Source

Posted on 2002-05-09
3
547 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 100 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
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…

734 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