By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,990 Members | 1,741 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,990 IT Pros & Developers. It's quick & easy.

Data Grid...

P: 16
Hi,
I work for an IT company in the UK and we have a customer that we developed software that uses a VB front end application running with a Access database.
The people that developed this before me have all left and now I am stuck with no explination of how any of the software works, my biggest problem is finding out how the software connects to the database and I think I found out it was using the Data Grid but:-
1. I have no idea how it works.
2. I keep getting an error that I don't know how to fix either "[Microsoft] [ODBC Driver Manager] Data source name not found and no default driver specified"

Can anyone pelase enlighten me at all on how to get this software working or give me a push in the right direction?
Oct 29 '07 #1
Share this Question
Share on Google+
15 Replies


QVeen72
Expert 100+
P: 1,445
Hi,

Check the DataSource Property of the DataGrid..
What does it say?

Regards
Veena
Oct 29 '07 #2

P: 16
It says CustListMDB, that was (when I figured out thats how we were connecting to the database) the first thing I looked for but have no idea how to change the property to make it worked, I tried making a random database and then a random program using it and setting the property to the test database on the Form_Load() section but to no avail, any help as stated previously is greatly appreciated.
Oct 29 '07 #3

QVeen72
Expert 100+
P: 1,445
Hi,

Create an ODBC with that name for the working mdb...

Regards
Veena
Oct 30 '07 #4

P: 16
Hmm, they made this program sound so easy when they signed me up to the task, but a messy program with no documentation sucks big style, I made the ODBC named CustListMDB and it still brings up the error, sorry for all the n00b questions I got chucked in the deep end here without any preparation O.O
Oct 30 '07 #5

debasisdas
Expert 5K+
P: 8,127
I can understand your problem.

But we really need more information to help you on the problem at your side.
Oct 30 '07 #6

P: 16
If you'd kindly tell me what information you need and where I can gather it from then I'll gladly give it, as I said I'm completely lost at the minute.
Oct 30 '07 #7

QVeen72
Expert 100+
P: 1,445
Hi,

What is the Database and what path /location it is stored...?
If the same programme is running somewhere else(any other client),
you can check the ODBC and get the database name and location.
do the same in your system also..


Regards
Veena
Oct 31 '07 #8

underscore
P: 30
am vb programmer and using msaccess before but now am using an mssql 2005. i think the connection of the vb to database is using and odbc but i will sugest you to use the ado connection wizard in vb toolbox to connect the access in odbc.


cheers...

underscore.
Oct 31 '07 #9

P: 16
The client isn't running on any other computers in the office and I dont deal with the customer directly to be able to look at their PC, I know the database that it is using though is in the same directory as the program itself, I have set up the ODBC to be called CustListMDB and then the path to that Database (called Spar.mdb) but I still get this error, if this isnt the information you needed I appologise and I'll try again.
Oct 31 '07 #10

QVeen72
Expert 100+
P: 1,445
Hi,

If your .mdb database is password protected then, While Creating the ODBC, goto Advanced option and give the Database Password. Then ur ODBC will work..

REgards
Veena
Oct 31 '07 #11

P: 16
Nope not password protected, this is why I was getting really lost because what I thought should work (and what other people think should work) doesn't work O.O, I have noticed something to do with Visual SourceSafe when I load up the VBP does anyone know if this could be a problem or just tell me what it is will be fine =P
Oct 31 '07 #12

P: 16
Hi Again,
I'm still extremely stuck on this and I can't for the life of me figure out why so I'm going to list exactly what I've done at the risk of sounding like a complete waste of time because I messed something simple up:-
1. Start
2. Control Panel
3. Administrative Tools
4. Data Sources (ODBC)
5. On the User DSN tab click Add
6. Click Microsoft Access Driver and Finish
7. Data Source Name = CustListMDB
8. Click Select
9. Browse to the Database that it is using.
10. Click Ok.

Have I messed something simple up here or am I up a creek without a paddle.
Nov 2 '07 #13

P: 57
Hi Again,
I'm still extremely stuck on this and I can't for the life of me figure out why so I'm going to list exactly what I've done at the risk of sounding like a complete waste of time because I messed something simple up:-
1. Start
2. Control Panel
3. Administrative Tools
4. Data Sources (ODBC)
5. On the User DSN tab click Add
6. Click Microsoft Access Driver and Finish
7. Data Source Name = CustListMDB
8. Click Select
9. Browse to the Database that it is using.
10. Click Ok.

Have I messed something simple up here or am I up a creek without a paddle.
Hi Friend

Simply You can do through Data grid.

there are two ways you can do

1) through manually

2) Through Runtime that means through Coding...

Make sure you place Data Grid and Adodc

Go project and select compoents and search Adodc control

if we want to use Data grid through Adodc

we have to set 3 properties

1) Set Connection

str = "C:\Documents and Settings\prakash\Desktop\db1.mdb" -"Your Database"
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data source=" & str
2) Set Commandtext
Adodc1.commandtype=adcmdtext

dim lcstr as string

lcstr="select * from table1"

3)Record source

Adodc1.Recordsource=lcstr
Adodc1.Refresh

now All records are in Data grid

Just try


Regads

Prakashsakthivel
Nov 2 '07 #14

P: 16
Ok, that helped quite a lot in giving me a basic idea of how the component works so thanks =D I'm gunnna have a look into this program a bit further and see if I can figure it out.
Nov 2 '07 #15

P: 16
I LOVE YOU!!!

I thought it was the Data Grid that linked directly to the ODBC but it isn't it's the Adodc control so the Datasource was just the name of the Adodc control, the actual ODBC record needed to be called spar2 =D.
Now I can continue what I was doing of tidying this atrocity piece of coding up =P
Nov 2 '07 #16

Post your reply

Sign in to post your reply or Sign up for a free account.