Solved

Urgent, problem with updating parameter from datepicker control

Posted on 2007-03-20
5
210 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 69

Accepted Solution

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

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now