?
Solved

Urgent, problem with updating parameter from datepicker control

Posted on 2007-03-20
5
Medium Priority
?
226 Views
Last Modified: 2010-04-23
I have a datepicker which is bound to a dataset.  When I do a add to the dataset with this bound control, the parameter information which is bound to dataset, is null unless I go and click on the datepicker and change the date.  Then the parameter has correct information.  The datapicker is defaulting to todays date, but even though its bound the parameter is not getting the default text.  I do have it bound to the text property.  
0
Comment
Question by:mgmhicks
[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
5 Comments
 
LVL 6

Expert Comment

by:kerryw60
ID: 18759032
For what it's worth, I use the DatePicker with a textbox, shink the datepicker down in size to just the dropdown arrow and butt it up against a textbox, when the user selects a date (datepicker_ValueChanged)

txtMyDate.Text = dtDatePicker.Text.ToString()

I never bind controls, but you should be able to bind your textbox to your date and on load of your form set to system date.

Good Luck!
0
 
LVL 6

Expert Comment

by:kerryw60
ID: 18759056
I may not have been clear enough, so I'll elaborate: I put the textbox and datepicker together so they look like one control to the user, but in placing the date in the textbox, it's just easier (to me) to manipulate it further as necessary as much of what I do is based on dates.

Hope that helps...
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 2000 total points
ID: 18760680
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month13 days, 15 hours left to enroll

801 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