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
Solved

Urgent, problem with updating parameter from datepicker control

Posted on 2007-03-20
5
215 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
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 500 total points
ID: 18760680
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

856 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