Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
GeneralRe: SqlTransaction Rollback Pin
Ashfield5-Jun-08 3:13
Ashfield5-Jun-08 3:13 
GeneralRe: SqlTransaction Rollback Pin
PIEBALDconsult5-Jun-08 4:54
mvePIEBALDconsult5-Jun-08 4:54 
AnswerRe: SqlTransaction Rollback Pin
PIEBALDconsult5-Jun-08 4:42
mvePIEBALDconsult5-Jun-08 4:42 
QuestionHow can i know witch language is active in the language bar ? ? Pin
Yanshof4-Jun-08 22:11
Yanshof4-Jun-08 22:11 
AnswerRe: How can i know witch language is active in the language bar ? ? Pin
leppie4-Jun-08 22:59
leppie4-Jun-08 22:59 
GeneralRe: How can i know witch language is active in the language bar ? ? Pin
Yanshof4-Jun-08 23:06
Yanshof4-Jun-08 23:06 
GeneralRe: How can i know witch language is active in the language bar ? ? Pin
leppie5-Jun-08 1:19
leppie5-Jun-08 1:19 
QuestionProblem in Calling an MS Access Stored Procedure which in turn calls a Macro Function Pin
Rafferty Uy4-Jun-08 21:37
Rafferty Uy4-Jun-08 21:37 
Hi,

I'm currently working on a C# app using MS Access as the database. In the database, it contains a SELECT stored procedure where one of its columns is something like Sum(IIf(WorkingDays(startDate, endDate)<=3,1,0)) AS Within3BusinessDays.

The WorkingDays(...) function basically counts the number of business days from the startDate to the endDate. Business days are weekdays (excluding Saturday and Sunday) AND non-holidays (holidays are listed in a separate Holiday table).

Now, my problem is... when I call this stored procedure in C#, it is getting an OleDbException with message "Undefined function 'WorkingDays' in expression." How can I fix this problem? I thought about removing the macro and just create a stored procedure that returns the # of working days instead but I don't know if that is possible since MS Access does NOT seem to use Transact-SQL.


Thank you in advance.

Rafferty

Rafferty

AnswerRe: Problem in Calling an MS Access Stored Procedure which in turn calls a Macro Function Pin
leppie4-Jun-08 23:00
leppie4-Jun-08 23:00 
GeneralRe: Problem in Calling an MS Access Stored Procedure which in turn calls a Macro Function Pin
Rafferty Uy5-Jun-08 0:31
Rafferty Uy5-Jun-08 0:31 
GeneralRe: Problem in Calling an MS Access Stored Procedure which in turn calls a Macro Function Pin
leppie5-Jun-08 1:57
leppie5-Jun-08 1:57 
GeneralRe: Problem in Calling an MS Access Stored Procedure which in turn calls a Macro Function Pin
Rafferty Uy5-Jun-08 4:05
Rafferty Uy5-Jun-08 4:05 
Questionmonitor for handle leak Pin
George_George4-Jun-08 20:48
George_George4-Jun-08 20:48 
AnswerRe: monitor for handle leak Pin
S. Senthil Kumar4-Jun-08 22:59
S. Senthil Kumar4-Jun-08 22:59 
GeneralRe: monitor for handle leak Pin
George_George4-Jun-08 23:06
George_George4-Jun-08 23:06 
GeneralRe: monitor for handle leak Pin
S. Senthil Kumar4-Jun-08 23:28
S. Senthil Kumar4-Jun-08 23:28 
GeneralRe: monitor for handle leak Pin
George_George4-Jun-08 23:43
George_George4-Jun-08 23:43 
GeneralRe: monitor for handle leak Pin
S. Senthil Kumar5-Jun-08 0:06
S. Senthil Kumar5-Jun-08 0:06 
GeneralRe: monitor for handle leak Pin
George_George5-Jun-08 0:39
George_George5-Jun-08 0:39 
Questionwhy image is not update in other form , on 2nd form closed event ? Pin
nomi4-Jun-08 20:42
nomi4-Jun-08 20:42 
AnswerRe: why image is not update in other form , on 2nd form closed event ? Pin
leppie4-Jun-08 23:04
leppie4-Jun-08 23:04 
AnswerRe: why image is not update in other form , on 2nd form closed event ? Pin
J a a n s4-Jun-08 23:04
professionalJ a a n s4-Jun-08 23:04 
AnswerRe: why image is not update in other form , on 2nd form closed event ? Pin
wasimsharp4-Jun-08 23:50
wasimsharp4-Jun-08 23:50 
RantIgnore - repost Pin
Guffa5-Jun-08 1:38
Guffa5-Jun-08 1:38 
Questionbind grid using cascade drop down with out postback Pin
Member 38798814-Jun-08 20:42
Member 38798814-Jun-08 20:42 

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.