Quantcast
Channel: put mdb file list in dropdownlist from a folder
Browsing all 20 articles
Browse latest View live

Re: put mdb file list in dropdownlist from a folder

Are you saying that you don't know the names of the tables in the database? If so, you can use OleDb.GetSchema to get a list of all the tables:using(var conn = new...

View Article



Re: put mdb file list in dropdownlist from a folder

mike u ve not understood my question :file name  i.e employee.mdbthis file has two table inside i.e named  as  a.employee                              b. salarySo these table can be changed as well.So...

View Article

Re: put mdb file list in dropdownlist from a folder

Here's a collection of examples showing how to query an Access database using System.Data.OleDb: http://www.mikesdotnetting.com/article/26/parameter-queries-in-asp-net-with-ms-access

View Article

Re: put mdb file list in dropdownlist from a folder

hey mike my mdb file has two  table i.e table 1  and table.2So i am reading mdb file by giving mdb file path. suppose i want to read table1 from mdb file then what should be the code??this is my prblm....

View Article

Re: put mdb file list in dropdownlist from a folder

Define "first" table.

View Article


Re: put mdb file list in dropdownlist from a folder

I dont want whole application.in mdb file has 2 table. So how to connect suppose first table from mdb file.thats my question

View Article

Re: put mdb file list in dropdownlist from a folder

I'm not writing your application for you - unless you want to share your fee. I'll give you some pointers though. You can use Directory.GetFiles to get a list of files in a folder. Mdb files don't have...

View Article

Re: put mdb file list in dropdownlist from a folder

Mike frm beginning. Assist with code

View Article


Re: put mdb file list in dropdownlist from a folder

Which bit are you having difficulty with?

View Article


put mdb file list in dropdownlist from a folder

I have some mdb file in a folder. I want to populate  dropdown with mdb filename from a folder. Then on button click I have to read mdb file and store data into table. my mdb file i have 2 worksheet ....

View Article

Re: put mdb file list in dropdownlist from a folder

i got salary , employee , salary , employee in my DropDownList_table dropdown. thats what i am saying mikeUsing conn = New System.Data.OleDb.OleDbConnection("Provider=Microsoft.JET.OLEDB.4.0;" &...

View Article

Re: put mdb file list in dropdownlist from a folder

mike4u getting double table_name in dropdown. ctrl is going again.I don't understand what you are saying.

View Article

Re: put mdb file list in dropdownlist from a folder

getting double table_name in dropdown. ctrl is going again. Using conn = New System.Data.OleDb.OleDbConnection("Provider=Microsoft.JET.OLEDB.4.0;" & "data...

View Article


Re: put mdb file list in dropdownlist from a folder

mike4u For Each row As DataRow In dt.Rows ' add the value to your dropdown 'TABLE_TYPE=TABLE If row("TABLE_TYPE").ToString() = "TABLE" Then     DropDownList_table.DataSource = dt End If NextYour logic...

View Article

Re: put mdb file list in dropdownlist from a folder

i tried this code getting error:Could not find file 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\INFORMATION_SCHEMA.mdb'.Using conn = New...

View Article


Re: put mdb file list in dropdownlist from a folder

Patrice i want only table_type= table in my dropdown i.e i am adding thrugh code. At the time of finding i am getting all tablename in my dropdown i.e system table etc. But i i need only table. So...

View Article

Re: put mdb file list in dropdownlist from a folder

Patrice could u suggest code to filter only table .

View Article


Re: put mdb file list in dropdownlist from a folder

Hi,See which columns you have in conn.GetSchema("Tables") and on which you could perhaps filter out those tables (do you have a catalog or something like that?). At worst you would have to create a...

View Article

Re: put mdb file list in dropdownlist from a folder

If ques is not clear then plz let me knw

View Article

Re: put mdb file list in dropdownlist from a folder

hi mike i tried this codeProtected Sub DropDownListmdb_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DropDownListmdb.SelectedIndexChanged Using conn = New...

View Article
Browsing all 20 articles
Browse latest View live




Latest Images