|
-
Mar 26th, 2008, 04:43 AM
#1
Thread Starter
Fanatic Member
[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()
-
Mar 26th, 2008, 04:48 AM
#2
Hyperactive Member
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.
-
Mar 26th, 2008, 04:53 AM
#3
Hyperactive Member
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!)
-
Mar 26th, 2008, 07:31 PM
#4
Thread Starter
Fanatic Member
Re: [2005]help With Simple Problem..
The was syntax error in ORDER BY clause...
-
Mar 26th, 2008, 07:36 PM
#5
Thread Starter
Fanatic Member
Re: [2005]help With Simple Problem..
connArrival1 was declare as private....
-
Mar 26th, 2008, 08:28 PM
#6
Thread Starter
Fanatic Member
Re: [2005]help With Simple Problem..
Anyway, thank you very much PEEPS for the help... i got my problem solve...
-
Mar 28th, 2008, 07:09 AM
#7
Hyperactive Member
Re: [2005]help With Simple Problem..
It's great that your problem is solved
-
Mar 28th, 2008, 08:02 AM
#8
Thread Starter
Fanatic Member
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.
-
Mar 28th, 2008, 08:08 AM
#9
Re: [2005]help With Simple Problem..
 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?
-
Mar 28th, 2008, 08:52 AM
#10
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|