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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. jmgrin

    Problem updating database from DetailsView

    I forgot to post my code. Here it is... <asp:DetailsView ID="DetailsView1" runat="server" DataSourceID="SqlDataSource1" AutoGenerateRows="False" CellPadding="4" ForeColor="#333333" GridLines="None" DefaultMode="Edit" Height="224px"> <Fields> <asp:TemplateField...
  2. jmgrin

    Problem updating database from DetailsView

    I'm new to Asp.net and need some help. I am using a DetailsView and the update statement of a datasource to update a database table. When I use the command field edit button that is provided by setting "show edit button" to true, the database is updated properly. However, I converted the...
  3. jmgrin

    How to test for invalid directory path

    earthandfire was correct. One character that wasn't matching is the '-' which was something I wanted to include. I need to do some checking to see what else I might want to include.
  4. jmgrin

    How to test for invalid directory path

    The following regular expression works for verifying a directory path: ^([A-Za-z]:)?(\\[\w\s]+)+$
  5. jmgrin

    How to test for invalid directory path

    Thanks for your help
  6. jmgrin

    How to test for invalid directory path

    Thanks for your responsese. You were absolutely correct about the directory [app's exe path] \c;\anydir being created. Can you recommend a good reference for regular expressions? I've avoiding using them because the syntax is so cryptic and hard to understand.
  7. jmgrin

    How to test for invalid directory path

    I am working on an application that prompts for a directory path. I use directory.exists(path) to verify that the directory exists, and if it doesn't then create it. This works fine as long as the path that was entered is valid. However if the path that has been entered is invalid -- for...
  8. jmgrin

    Binding form controls to a data source

    I have a form with 30 text controls (controls are named txtitem1 - txtitem30) which I want to bind to fields in a database (database table fields (named item1-item30). Rather than binding each item in a separate statement, I would like to create a collection for these controls and use a "for...
  9. jmgrin

    Help understanding VB.net Behavior

    I have a windows form with controls bound to an Access database. When data is entered/changed in a field I want to 1)validate that the data is numeric and 2) if it is format the data show that it is displayed as 99.99. When the code in the mycontrol_validating event is as follows: If...
  10. jmgrin

    How do I Handle Exceptions

    Thanks for all who responded. I was able to trap the invalid data error by putting the code in either the mycontrol_validating or the mycontrol_textChanged events. I'm starting a new post because I'm not understanding the behavior of vb.net as it executes these events.
  11. jmgrin

    How do I Handle Exceptions

    Thanks for your quick reply. I guess my real question was where I put the code that checks for invalid data. It isn't getting executed when I put it in the mycontrol_validating or mycontrol_onclick methods, so where do I put it so it gets executed before the unhandled exception is thrown?
  12. jmgrin

    How do I Handle Exceptions

    I'm just getting started with VB.net and am finding the switch from VB6 very painful. I am working on a Windows form that has bound fields to an access database. The fields are of type double. I want to include error checking to make sure that characters are not entered into the fields. It...
  13. jmgrin

    Exporting Date value from SAS

    Ignore my last response. I tried it again without the datepart and it worked fine. Thanks for your help. So this is what worked: libname JobLib odbc dsn=JobStats...
  14. jmgrin

    Exporting Date value from SAS

    Yes, I've also tried removing the Datepart(). I keep thinking I'm missing something very simple. This should not be this difficult. Thanks.
  15. jmgrin

    Exporting Date value from SAS

    I took out the format statement ... Same result -- 1/1/1960 in my access database.
  16. jmgrin

    Exporting Date value from SAS

    Thanks for your response. If I understand what you're saying, in my sample code, I should replace procdate=today with procdate=datetime(). If that's what you meant, it still is giving me a date of 1/1/1960 in my access table. Any other thoughts?
  17. jmgrin

    Exporting Date value from SAS

    I am trying to export data from a SAS dataset to an Access database and I'm having trouble getting the date to export correctly. The date that's getting to my Access table is 1/1/1960 which I know is SAS's starting point for storing dates. Here is the test code I've been using. What am I...
  18. jmgrin

    I have a memory leak. Please Help

    For anyone following this thread, the problem was being caused by the elkern virus. Thanks for all the responses
  19. jmgrin

    I have a memory leak. Please Help

    When I rerun the application, I can't even get the menu to display. The machines that are having problems don't have much software loaded... Microsoft Office, Visual Studio, Crystal Reports, SAS, Internet Explorer, Eudora. All software that is loaded on another machine that is not having a...
  20. jmgrin

    I have a memory leak. Please Help

    Yes I have. It seems to unload just fine.

Part and Inventory Search

Back
Top