[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Urgent, problem with updating parameter from datepicker control

Posted on 2007-03-20
5
Medium Priority
?
234 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
  • 2
3 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
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 Month18 days, 17 hours left to enroll

834 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