Results 1 to 10 of 10

Thread: [RESOLVED] [2005]help With Simple Problem..

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2007
    Posts
    839

    Resolved [RESOLVED] [2005]help With Simple Problem..

    iT'S VERY SIMPLE PROBLEM I CAN'T FIND WHAT IS WRONG WITH MY CODE..

    CAN SOMEONE HELP HERE...

    I TRIED IT MANY TIMES....


    Code:
     connArrival1 = New OleDbConnection
                        connArrival1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Rsodb.mdb;User Id=admin;Password=;"
                        ' Create the OleDbDataAdapter.
                        daArrival1 = New OleDbDataAdapter("Select ReservationNum, RSONO, ITEMCODE, ITEMDESCRIPTION, SOURCE, MOQ, QuantityRequired, Remarks, HagInvoiceNO from FinalItemRSO order by RSONO DESC where ConfirmArrivalBy is null", connArrival1)
                        ' Map Table to Contacts.
                        daArrival1.TableMappings.Add("Table", "FinalItemRSO")
                        ' Fill the DataSet.
                        dsArrival1 = New DataSet()
                        daArrival1.Fill(dsArrival1)
    
                        ' Make a DataView for the data.
                        DataViewpurchaseDisplay = New DataView(dsArrival1.Tables("FinalItemRSO"))
    
                        ' Bind the DataGrid control to the DataView.
                        DataGridView2.DataSource = DataViewpurchaseDisplay
                        connArrival1.Close()

  2. #2
    Hyperactive Member cameron2's Avatar
    Join Date
    Mar 2008
    Location
    Australia
    Posts
    401

    Re: [2005]help With Simple Problem..

    Can you actually state what the error is that way people will not be deterred by having to try out your code but help you based on the error information you give.

  3. #3
    Hyperactive Member cameron2's Avatar
    Join Date
    Mar 2008
    Location
    Australia
    Posts
    401

    Re: [2005]help With Simple Problem..

    Looks like you need to declare everything e.g.
    Dim connArrival1 = New (OleDbConnection-wateva this is but it needs declaration too!)

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2007
    Posts
    839

    Re: [2005]help With Simple Problem..

    The was syntax error in ORDER BY clause...

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2007
    Posts
    839

    Re: [2005]help With Simple Problem..

    connArrival1 was declare as private....

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2007
    Posts
    839

    Re: [2005]help With Simple Problem..

    Anyway, thank you very much PEEPS for the help... i got my problem solve...

  7. #7
    Hyperactive Member cameron2's Avatar
    Join Date
    Mar 2008
    Location
    Australia
    Posts
    401

    Re: [2005]help With Simple Problem..

    It's great that your problem is solved

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2007
    Posts
    839

    Re: [2005]help With Simple Problem..

    yes, because i found the error with my own risk..h why cameron2?
    i forgot something missing in the database field name..
    Last edited by edgarbenilde; Mar 28th, 2008 at 08:49 AM.

  9. #9
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: [2005]help With Simple Problem..

    Quote Originally Posted by edgarbenilde
    Anyway, thank you very much PEEPS for the help... i got my problem solve...
    Would you be kind to mark the thread as resolved?

  10. #10

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2007
    Posts
    839

    Re: [RESOLVED] [2005]help With Simple Problem..

    thanks peeps... for your assistance, sorry i missed something here... and my error also is only my database field is my error...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width