Click here to Skip to main content
15,919,774 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Experts,

I have a table that has columns as UserID,TaskID,ReminderDate,Task,TaskType,TaskStatus.

Here TaskType is Daily,Weekly,Monthly,Yearly,Today,None.

Now i need to insert a new row in the table as per a condition (when the date in the Reminder Date matches with today's Date).

This should run only once in a day. And the inserted row values should be same(except TaskID, as taskid is set increment by '1') as the before row but the Reminder Date should be changed(as per the TaskType selected).



Please help me to proceed further...
Posted
Updated 16-Jul-13 18:54pm
v2
Comments
[no name] 17-Jul-13 1:07am    
Harsha,
Whether u need to filter the data in dataset with
date (Reminder Date matches with today's Date)
and Insert into another table?
Harsha24 17-Jul-13 1:35am    
i want to insert a new row in the same table itself with new reminder date according to the TaskType.

1 solution

Hi,

The below link may be useful.

http://www.dreamincode.net/forums/topic/182322-looping-through-a-dataset/[^]

Regards,
Raghu
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900