473,326 Members | 2,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Data Grid...

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
15 1514
QVeen72
1,445 Expert 1GB
Hi,

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

Regards
Veena
Oct 29 '07 #2
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
1,445 Expert 1GB
Hi,

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

Regards
Veena
Oct 30 '07 #4
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
8,127 Expert 4TB
I can understand your problem.

But we really need more information to help you on the problem at your side.
Oct 30 '07 #6
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
1,445 Expert 1GB
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
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
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
1,445 Expert 1GB
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
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
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
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
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
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

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

Similar topics

2
by: Jordan O'Hare | last post by:
Hello Everyone, I am after some help with the following: I have a windows application that contains a list box and two data grids. All three controls are binded to a dataset that contains...
2
by: kk | last post by:
Have 2 problems, any help is appreciated. Tab with Grids -------------- BL - fetching data from DB ( 5 secs - 10 rows) Grid Laod - 20 secs Grid Paint on tab change - 20 secs Problem: The...
5
by: pmud | last post by:
Hi, I need to display columns in a data grid based on 7 different queries. Now I have 32 questions: 1. Is it possble to have 1 single data adapter with 7 queries & 1 data set or do I need to...
2
by: Josef Meile | last post by:
Hi, I'm using a ComboBox, some Textboxes, and a DataGrid to represent a many-to-many relationship between Person and Course. Each time that I change the value in the ComboBox (which for now is...
6
by: Hutty | last post by:
I've looked around and have yet to find anything that would answer my question regarding formating a column in a datagrid. My grid looks like this as far as data" AMHQCON|51300.01|-3147 The...
3
by: pmud | last post by:
Hi, I have a web page (asp.net, code:c#). I havean html table with text boxes. Based on the user input , records are displayed in the data grid below it. Now the datagrid has a large no. of...
5
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go...
0
by: hlam | last post by:
Help - Calculating the total of a column in a data grid -- when data grid is part of Master-Detail set-up I have setup a Master-Detail form using Visual Studio.Net. A ListBox is the (Master)...
9
by: Anil Gupte | last post by:
After reading a tutorial and fiddling, I finally got this to work. I can now put two tables created with a DataTable class into a DataRelation. Phew! And it works! Dim tblSliceInfo As New...
6
by: insirawali | last post by:
Hi all, I have this problem, i need to know is there a way i cn use the data adapter's update method in this scenario. i have 3 tables as below create table table1{ id1 int identity(1,1)...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.