Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
QuestionStop all threads in Threading.Timer in Callback method? Pin
xkrja18-Feb-11 0:42
xkrja18-Feb-11 0:42 
AnswerRe: Stop all threads in Threading.Timer in Callback method? Pin
Alan N18-Feb-11 1:52
Alan N18-Feb-11 1:52 
JokeRe: Stop all threads in Threading.Timer in Callback method? Pin
#realJSOP18-Feb-11 2:53
mve#realJSOP18-Feb-11 2:53 
GeneralRe: Stop all threads in Threading.Timer in Callback method? Pin
xkrja18-Feb-11 3:26
xkrja18-Feb-11 3:26 
GeneralRe: Stop all threads in Threading.Timer in Callback method? Pin
#realJSOP18-Feb-11 3:47
mve#realJSOP18-Feb-11 3:47 
Questionhttp webrequest Pin
TAREQ F ABUZUHRI18-Feb-11 0:39
TAREQ F ABUZUHRI18-Feb-11 0:39 
AnswerRe: http webrequest Pin
#realJSOP18-Feb-11 2:55
mve#realJSOP18-Feb-11 2:55 
QuestionError: No value given for one or more required parameters Pin
benams17-Feb-11 23:36
benams17-Feb-11 23:36 
I try to execute a command on my MSACCESS database and I get the exception above.
The query seems OK and I cant find any problems with it, I don't think there is a problem with my SQL code.
Here is my code:

com.CommandText = "SELECT activities.*,company.CompanyName,contact.ContactName " +
                              "FROM company,activities,contact,company_type,activity_type " +
                              "WHERE (activityTypeID.CompanyID=company.CompanyID AND " +
                              "activities.ContactID=contact.ContactID AND " +
                              "activity_type.TypeID = activities.ActivityTypeID) " +
                              "AND " +
                              "(CompanyName=@CompanyName OR @CompanyName='') AND " +
                              "(contact.ContactID=@ContactID OR @ContactID=0) AND " +
                              "(activities.ActivityTypeID=@ActivityTypeID OR @ActivityTypeID=0) AND " +
                              "(company.CompanyTypeID=@CompanyTypeID OR @CompanyTypeID=0) AND " +
                              "(StartDate>=@StartDate AND StartDate<=@EndDate) AND " +
                              "(Reminder=@Reminder OR @Reminder=false)";
            
            com.Parameters.Add(new OleDbParameter("@CompanyName", companyName));
            com.Parameters.Add(new OleDbParameter("@ContactID", contactID));
            com.Parameters.Add(new OleDbParameter("@ActivityTypeID", activityTypeID));
            com.Parameters.Add(new OleDbParameter("@CompanyTypeID", companyTypeID));
            com.Parameters.Add("@StartDate", OleDbType.DBDate).Value = start;
            com.Parameters.Add("@EndDate", OleDbType.DBDate).Value = end;
            com.Parameters.Add(new OleDbParameter("@Reminder", reminder));

            DataTable dtAct = new DataTable();
            OleDbDataAdapter adapter = new OleDbDataAdapter(com);

            con.Open();
            adapter.Fill(dtAct);
            con.Close();

AnswerRe: Error: No value given for one or more required parameters Pin
Wendelius18-Feb-11 0:29
mentorWendelius18-Feb-11 0:29 
GeneralRe: Error: No value given for one or more required parameters Pin
benams18-Feb-11 0:32
benams18-Feb-11 0:32 
AnswerRe: Error: No value given for one or more required parameters Pin
Luc Pattyn18-Feb-11 0:44
sitebuilderLuc Pattyn18-Feb-11 0:44 
AnswerRe: Error: No value given for one or more required parameters Pin
J4amieC18-Feb-11 1:20
J4amieC18-Feb-11 1:20 
QuestionHow can i read utf-8 type from ms-sql 2005? Pin
buffering8317-Feb-11 23:10
buffering8317-Feb-11 23:10 
AnswerRe: How can i read utf-8 type from ms-sql 2005? Pin
jschell18-Feb-11 9:06
jschell18-Feb-11 9:06 
QuestionWeb service authentication using desktop client Pin
ika217-Feb-11 22:25
ika217-Feb-11 22:25 
QuestionHow to perform a validation for Calendar control for checking weather the selected date is less than current date(Today) Pin
Rocky2317-Feb-11 21:32
Rocky2317-Feb-11 21:32 
AnswerRe: How to perform a validation for Calendar control for checking weather the selected date is less than current date(Today) Pin
Richard MacCutchan17-Feb-11 22:13
mveRichard MacCutchan17-Feb-11 22:13 
QuestionI am making outlook add-ins and have question about it. Pin
buffering8317-Feb-11 13:01
buffering8317-Feb-11 13:01 
AnswerRe: I am making outlook add-ins and have question about it. Pin
Mycroft Holmes17-Feb-11 13:17
professionalMycroft Holmes17-Feb-11 13:17 
AnswerRe: I am making outlook add-ins and have question about it. Pin
Luc Pattyn17-Feb-11 13:23
sitebuilderLuc Pattyn17-Feb-11 13:23 
GeneralRe: I am making outlook add-ins and have question about it. Pin
Mycroft Holmes17-Feb-11 13:41
professionalMycroft Holmes17-Feb-11 13:41 
GeneralRe: I am making outlook add-ins and have question about it. Pin
Luc Pattyn17-Feb-11 13:54
sitebuilderLuc Pattyn17-Feb-11 13:54 
GeneralRe: I am making outlook add-ins and have question about it. Pin
Mycroft Holmes17-Feb-11 14:13
professionalMycroft Holmes17-Feb-11 14:13 
AnswerRe: I am making outlook add-ins and have question about it. Pin
Luc Pattyn17-Feb-11 14:35
sitebuilderLuc Pattyn17-Feb-11 14:35 
GeneralRe: I am making outlook add-ins and have question about it. Pin
buffering8317-Feb-11 14:19
buffering8317-Feb-11 14:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.