Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to connect to an Access data source

Posted on 2000-04-27
7
Medium Priority
?
1,935 Views
Last Modified: 2010-03-17
I've a MSaccess97 database with a single table.
How do I go about writing the connection string.  I have no idea about odbc drivers, I've tried following the online help.
I'm on win98
Through the control panel OBBC datasources I have gone to System DSN, then added Microsoft Access driver (*.mdb) and made up a name 'msaa', then selected a specific database.

Then in Flash under set enviroment I put this:-

msaa:///?driver=obdcjt.dll&url=antennas.mdb&userid=&password=SELECT%20%20FROM%20antennatest

suprisingly (!) it does not work, there are so many things I don't understand I am looking for any help or advice.
0
Comment
Question by:susannahbond
  • 2
  • 2
  • 2
  • +1
7 Comments
 

Expert Comment

by:ranjit021100
ID: 2776248
hI,

Following set of code may help u.

String strAccConnUrl="jdbc:odbc:msaa";

Class.forName("com.ms.jdbc.odbc.JdbcOdbcDriver");                         
connDB = DriverManager.getConnection(strAccConnUrl);       

Regds
Ranjith
0
 

Accepted Solution

by:
huijkman earned 300 total points
ID: 2786204
Hi Susanna,
It seems like the URL you put under Set Environment is incomplete. You put the query part directly after the password without calling it first, and you left out an essential *, in the end it should ressemble something like this: (after the password part) &query=SELECT%20*%20FROM%20antennatest.
Apart from that you put your DSN at the beginnig of the URL. the first part contains info about the ODBC driver so your DSN should not be there, it is called in another part of the URL. Try the following URL:
fgjdbc:///?driver=sun.jdbc.odbc.JdbcOdbcDriver&url=jdbc:odbc:msaa&userid=&password=&query=SELECT%20*%20FROM%20antennatest
I got this from the Generator manual and completed it with your specific data
Good Luck
Huijkman
0
 
LVL 1

Author Comment

by:susannahbond
ID: 2955152
the comment below is more helpful
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 1

Author Comment

by:susannahbond
ID: 2955154
Comment accepted as answer
0
 

Expert Comment

by:john_
ID: 4604978
hi Susannahbond,

Please pardon for posting my question here.  I really cant find anymore help from other people.  I think you might have better picture of how to drive the database from MS Access to Macromedia Generator.  I am really a newbie in drivig the database from one source to another source.  Hence can you please help me to overcome my problem. (I have been assigned this task but I really have zero knowledge on it)  I do try many methods of driving the data either from Macromedia help file or online solutions.  Please let me know if you are willing to help me.  Thus i will send you my problem. (this is to show my respcet to you)

from John
s9813119@mmu.edu.my
0
 

Expert Comment

by:huijkman
ID: 4619759
Hi John,

Maybe I can help you. I have worked with Generator and MS Access for several months. So send me your problem and I will have a look at it. I also know how hard it is to get specific information about the subject. (I've been there).

huijkman@hotmail.com

0
 

Expert Comment

by:john_
ID: 4632941
Hi huijkman,

I am so glad that for your feedback.  In fact i wish to let you solve my problems here but I couldnt attach my relevant problem and error messages from my work.  Hence I wish to send you my questions from your personal hotmail address.  Please concern about my situation.  

Thanks Huijkman.  

from John
s9813119@mmu.edu.my
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Convert websphere application server default chained Certificates from 1024 to 2048 keysize or higher size and also you can change signatureAlgorithm . Please make sure Websphere Application Server fixpack 7.0.0.23 or Above. The following steps a…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month8 days, 21 hours left to enroll

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question