Solved

Calendar works on first entry, but not when user enters another task

Posted on 2011-09-09
4
258 Views
Last Modified: 2012-05-12
I am using Steven Lebans Calendar function adn it works perfectly for the first entry.  This is on an unbound form but the problem is if the user wants to enter more than one task, one the second task, when they hit the calendar text box, an error message of Run-Time 13, Type Mistach comes up.  How can I re-use the form witout having to close and reopen when there is more than one entry to be made?
0
Comment
Question by:ssmith94015
[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
  • 3
4 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 36514367
The Lebans calendar is just that, a Calendar.

So when you say "Task" you must provide context for this.

Remember we know nothing about your applications, so it is difficult to make any suggestions.

Can you post a sample db, or at the very least, the code involved?

Sample database notes:
1. Back up your database(s).
2. Combine the front and back ends into one database file.
3. Remove any startup options, unless they are relevant to the issue.
4. Remove any records unless they are relevant to the issue.
5. Delete any objects that do not relate directly to the issue.
6. Remove any references to any "linked" files (files outside of the database, Images, OLE Files, ...etc)
7. Remove any references to any third party Active-x Controls (unless they are relevant to the issue)
8. Remove, obfuscate, encrypt, or otherwise disguise, any sensitive data.
9. Compile the code. (From the VBA code window, click: Debug-->Compile)
10. Run the compact/Repair utility.
11. Remove any Passwords and/or security.
12. If a form is involved in the issue, set the Modal and Popup properties to: No
    (Again, unless these properties are associated with the issue)
13. Post the explicit steps to replicate the issue.
14. Test the database before posting.

In other words, ...post a database that we can easily open and immediately see and/or troubleshoot the issue.
And if applicable, also include a clear graphical representation of the *Exact* results you are expecting, based on the sample data.


JeffCoachman

0
 

Author Comment

by:ssmith94015
ID: 36516473
Will have to do this on Monday when I get to work.  Wat a task is, say a developer is given a project to create an Access 2003 database that tracks documents.  Tasks are what the developer will need to do to gather user information, needs, requirements, etc.  So, tasks could be meet with end users, create data map, prototype code - three tasks related to one project and each task could have different due dates.  I would like the developer to be able to put these three separate tasks in without having to close the Task Entry form and reopen to enter the next task.  Right now, after the task is saved, there is code to reset all fields to empty text strings so I think it has something to do with properly re-setting the text control the calendar is attached to, it needs to be reinitlalized and I am not sure how to do it.  So, sample db on Monday!
0
 

Accepted Solution

by:
ssmith94015 earned 0 total points
ID: 36920450
Jeff, Ifinally figured out what was going on.  I simply needed to re-initiliaze the calendar when the user needs another task.  I placed the code in a closing module that, if the user adds another task, it acts like it is closing, but does not close and recreats the calendar, works perfectly.
0
 

Author Closing Comment

by:ssmith94015
ID: 36941266
Simply needed to tell the system to re-iniitalize the calendar class.
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

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 …
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

622 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