hi every 1/ . i am having problem in sql query. if i double click on the dataset. i am not sure which statement to write to restrict the user so that he/she cannot enter the date in the past. i have droped the data set on the form and my data entry is through datagrid view.kindly help.
dilse4sk 0 Junior Poster in Training
Recommended Answers
Jump to Postok lets assume you have a form , have so many controls , and a datetimepicker , now you want to save records of the current date , and restrict user to save records of past date , then you can do like this .
if datetimepicker.value.date.tostring() …
Jump to Postis there any column of date ?
Jump to Postto restrict the user so that he/she cannot enter the date in the past.
I have another preposition: do now allow user to write date. Use MonthCalendar to select the date, and do not show the date older then you want (or today`s date or what ever).
Can you do …
Jump to PostYou should use a cellValidating event. It occurs before Leaving the cell. Its strictly meant for validating the cell value.
This event will notify user as soon as he will try to confirm the inserted value into a cell (as said, just before leaving cell).
And do not use a …
All 13 Replies
dilse4sk 0 Junior Poster in Training
M.Waqas Aslam 67 Posting Pro in Training Featured Poster
dilse4sk 0 Junior Poster in Training
M.Waqas Aslam 67 Posting Pro in Training Featured Poster
dilse4sk 0 Junior Poster in Training
M.Waqas Aslam 67 Posting Pro in Training Featured Poster
dilse4sk 0 Junior Poster in Training
M.Waqas Aslam 67 Posting Pro in Training Featured Poster
Mitja Bonca 557 Nearly a Posting Maven
dilse4sk 0 Junior Poster in Training
dilse4sk 0 Junior Poster in Training
Mitja Bonca 557 Nearly a Posting Maven
dilse4sk 0 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.