Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Shelyn

  1. Shelyn

    Menu Links Tab Indexes Acted Weird

    Hi All, I am new to the ASP.net and am trying to get this menu links work. I have the style classes for active link and inactive link. And here is the coding to load the path to the datalist. currPath + "leaveSelMyNotification.aspx?TabIndex = 1" It works well that it can trace the current...
  2. Shelyn

    How to insert data from data table in one batch?

    Hi Chrissie, I was doing the testing on this, so I created a datatable with only 2 columns. The error given is: An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll Additional information: System error. Do you have any idea on this? Hi...
  3. Shelyn

    How to insert data from data table in one batch?

    Hi All, I have a data table with hundreds of records and would like to insert them to the database in one batch. Below is my coding. But it gives me error at the da.Update(dt). What's wrong? Private Sub InsertGLTable(ByVal GLRec As DataTable) Dim conn As New...
  4. Shelyn

    The value doesn't appear in the inherited user control!!!

    It has no problem in populating the value from the database... only the inherited control can't display the value.
  5. Shelyn

    The value doesn't appear in the inherited user control!!!

    The txtDouble is the ascendent user control, so in the form, I just drag it from the toolbox and use it. I rename it in the form, for eg. txtInput1, and just use it as normal user control. It does run the validation events written in its ascendent (txtDouble). The only problem is it didn't...
  6. Shelyn

    The value doesn't appear in the inherited user control!!!

    Hi All, I created a text field user control (txtDouble), in which I do all the validation in this text field to only allow double data type to be entered. In the form, any fields that need only double data type entry, I will inherit my user control (txtDouble). But I don't understand why the...
  7. Shelyn

    Print report in PDF file format.

    Hi All, What's the best and easiest way to print the report in PDF file format? All the data are retrieved from the DB and need to be previewed in PDF file. How can I do that? Thanks
  8. Shelyn

    How can I call a function from the expression?

    Hi All, I have scalar function in which I wish to call it to return me the value for my field in the report. How can I call the function from the expression to return me the value? Thanks, Shelyn
  9. Shelyn

    Error message on Varying data types

    Hi All, I received this error message on the reporting: The value expression for the textbox ‘RoleSR’ uses an aggregate function on data of varying data types. Here is my expression: =IIF( Fields!SubtRate.Value = 0, Fields!Scores.Value , (sum( Fields!SubtSR.Value) * Fields!RoleRate.Value) /...
  10. Shelyn

    Aggregate function in reporting

    Hi All, Since the edit field does not allow aggregate function, so I use text box to do the aggregate function. But when I want to sum up or average up my text box, it does not allow aggregate function for ReportItems also. So what is the way I can do my report? I would like to average...
  11. Shelyn

    Mid Function

    oic.. Thanks a lot PerFnurt :-) Shelyn
  12. Shelyn

    Mid Function

    Do I need to include any library? Coz when I wrote CString S, it gives me error that Undeclared identifier.
  13. Shelyn

    Mid Function

    I just want to write the mid function to retrieve the character from the string. Like VB we just need to write Mid(string, int, int), but for C++ I don't know how to apply the Mid function.
  14. Shelyn

    Mid Function

    I know CString::Mid and this is the example I found from MSDN: Example The following example demonstrates the use of CStringT::Mid. //typedef CStringT< TCHAR, StrTraitATL< TCHAR > > CAtlString; CAtlString s( _T(&quot;abcdef&quot;) ); _ASSERT( s.Mid( 2, 3 ) == _T(&quot;cde&quot;) ); But I...

Part and Inventory Search

Back
Top