dougontour
New member
- Joined
- Apr 20, 2005
- Messages
- 4
- Programming Experience
- Beginner
Hi all,
I am very new to programming of any description, so firstly, please excuse me if I am asking a very stupid question.
My issue (and this is driving me nuts), is as follows:
I have created a form with bound controls on it. My database contains a table called "tblTimesheets".
One of the bound controls is a DateTimePicker, the interface allows you to choose a date, and then using some context menus, right click and change the colour of some "panels" on the screen. As well as changing the colour of the panel, I assign a value to a variable called "DaysWorkValue" that gets updated in the database along with the date chosen.
What I want to acheive now, is that if I choose the same date as I have done previously, that the panel changes back to the colour I assigned it last time, or at least show the value of the "DaysWorkValue" for the date chosen in an unbound "textbox" on my form, from that I can work it out.
But what I don't know is how, once the date is selected, do i query my SQL database table for that same date in the "DateChosen" field and return the values i want?
Thanks in advance, and I hope this makes sense.
I am very new to programming of any description, so firstly, please excuse me if I am asking a very stupid question.
My issue (and this is driving me nuts), is as follows:
I have created a form with bound controls on it. My database contains a table called "tblTimesheets".
One of the bound controls is a DateTimePicker, the interface allows you to choose a date, and then using some context menus, right click and change the colour of some "panels" on the screen. As well as changing the colour of the panel, I assign a value to a variable called "DaysWorkValue" that gets updated in the database along with the date chosen.
What I want to acheive now, is that if I choose the same date as I have done previously, that the panel changes back to the colour I assigned it last time, or at least show the value of the "DaysWorkValue" for the date chosen in an unbound "textbox" on my form, from that I can work it out.
But what I don't know is how, once the date is selected, do i query my SQL database table for that same date in the "DateChosen" field and return the values i want?
Thanks in advance, and I hope this makes sense.