odbc drivers
Microsoft Office TrainingThe UK's Number 1 for Microsoft Office Training Sitemap add this page to your favourites/bookmarksBookmark page
 
view a printable version of this pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access VBA Training and help » ODBC drivers

ODBC drivers

resolvedResolved · Urgent Priority · Version 2003

replyReplyThu 15 Jul 2010, 11:54Delegate Maisie said...

ODBC drivers

Trying to connect to a Mysql database we have set up the database accordingly and connected it with the appropriate drivers but we are trying to connect to the databases tables with vba.

Currently we are using this

DoCmd.TransferDatabase acLink, "ODBC Database", _
"ODBC;DSN=DBname;UID=xx;PWD=xx;LANGUAGE=us _english;" _
& "DATABASE=tbl1", acTable, "Authors", "dboAuthors"

it connects fine but it pops up with the driver asking you to click okay how can we get disable this so it connects automatically without asking us to click ok

For upcoming training course dates see: Pricing & availability

replyReplyThu 15 Jul 2010, 13:22Trainer Andrew said...

RE: ODBC drivers

Hi Maisie

Thank you for your question - can I just check does the dialog box present a message (and if so what does it say) and also does it offer an option to save your setting when you click OK?

Kind regards,
Andrew

replyReplyThu 15 Jul 2010, 13:32Delegate Maisie said...

RE: ODBC drivers

Its the standard input for a ODBC driver connection its put all our infomation in and just asks us to confirm it so it jumps out of the vba/access , the vba cant run until its done. Its not so much saving the settings rather entering them into the pop up and asking to click okay

Do you have any links or tutorials , that can push us in the right direction to actually accessing and using the data

replyReplyFri 16 Jul 2010, 14:12Trainer Stephen said...

RE: ODBC drivers

Hi Maisie

This is tricky to solve without seeing the database and obvious solution is to turn off the application's display alerts before the code runs and then switch them on again after.

so



docmd.setwarnings false

(Your Code)

docmd.setwarnings true



Try this to see if it works, if not let me know and I'll see if I can think of something else

Regards

Stephen

replyReplyMon 19 Jul 2010, 10:14 Edited on Mon 19 Jul 2010, 10:14Delegate Maisie said...

RE: ODBC drivers

I have fixed the previous error to not display the pop up. At the moment it connects to the database and links the table to MySql database which is what I need. In order to do this it needs to have a pre-defined odbc connection to be made using the driver or else it doesnt work.Even though I have defined the connection source in the code it doesn't seem to be working. I don't know where i'm going wrong.
Here's the code I am using:


DoCmd.TransferDatabase acLink, _
"ODBC Database", _
"ODBC;Driver = MySql ODBC 3.51 Driver;DSN=xxxx;ServerName=xxxx;ServerDSN=DIOMED;UID=xxxx;PWD=xxxx;StoreLogin=true;ArrayFetchOn=1;ArrayBufferSize=8", _
acTable, "tbl_1", "tbl_1"

replyReplyThu 22 Jul 2010, 11:07Trainer Jacob said...

RE: ODBC drivers

Hi Maisie

I have been speaking with my colleague Stephen about your forum posts and we have reached the limit of what we can arrange via the forum.

In order to find a solution the next stage will be to assess your actual working files. If we are confident of a solution we will prepare a scope of work including costs and durations for your review.

If you would like to discuss this further please let me know.

Kind regards

Jacob

replyReplyThu 22 Jul 2010, 13:41Delegate Maisie said...

RE: ODBC drivers

Sorry i dont want to pay you to answer my question as i have googled and fixed the error. It was just the two fields at the end which were not required.

:)

Maisie

 

 

Please browse our web site to find out more about
microsoft access 2002 training and other Microsoft training courses.

Access tip:

Relationship maps

It is important to create proper relationships between tables. You can use Access to help check your designs and evaluate them by printing them in graphical format to help with design purposes


Click on the Tools menu, click Relationships.
On the File menu, click Print Relationships. View or print as required

View all Access hints and tips

forum postHow do you sort a column / range automatically?

» Forum post: Excel VBA


Rate this page:
2.2/5 (213 votes cast)
Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses
Microsoft Certified Partner
Security Seal verified by visa, mastercard securecard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Management training

Professional Skills courses
Project Management Course London
Project Management Courses London
Project Management Training London
Project Management Training
Project Seminar
Project Seminars
Time Management Course London
Time Management London
Time Management Courses London
Time Management Training London
Introduction to Finance course
Assertiveness Skills course
Effective Communications Skills training
Presentation Skills London

Training Formats

Public scheduled courses
On-site training
Closed company courses

Consultancy
Application Development

Blogs

Excel Training
MS Project Training
Microsoft Training Blog

Version differences

Office 2010 vs 2007
MS Project version differences

Training Information

London Computer Training
Computer Training London
Docklands Training Courses
Docklands Training London

Training venues London
Client list
FAQ
Pricing and availability
Course details / Syllabus

Training Articles
Training Information

Microsoft training

Microsoft Office training
& IT Applications

Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training
MS Project courses
MS Project training
Outlook courses
PowerPoint courses
PowerPoint training
VBA courses
Word courses
Microsoft.training
(more...)

Excel Training

Excel courses
Excel Training Courses Medway
Autonumber in Excel
Microsoft Excel training
Basic Excel Courses
Basic Excel Course
Basic Excel Training

Interested in MS Access training?

Access courses
Microsoft Access training
Microsoft access courses
Microsoft training access course
Microsoft+access+training
Access courses in london

Training provider

Training providers
IT training companies
IT training providers
Management Training providers
Management Training provider

Event history, feedback results
Events in 2012 · 2011 · 2010 · More

See also

Crystal Reports training