Hello,
I've installed the ODBC connector for MySQL and can go into Access and
manually link to the MySQL tables. Everything works fine this way.
But rather than go into the Windows Data Source Adminstrator on each
user's computer, how would you code an MS Access front end to connect
to MySQL tables at startup? Where would you put the code and how
would you call it when the Access database is opened?
Thanks for your help! 5 3419
On Sat, 15 Mar 2008 12:10:47 -0700 (PDT), WPW07 <ww********@gma il.com>
wrote:
An ODBC datasource (DSN) can be created by adding the right entries to
the registry. Just run regedit.exe and search for one by name. You can
export the key, and then import it using a command line: regedit.exe
your.reg
Reattach code is a FAQ. You should have no problem finding
suggestions. Keyword: RefreshLink
-Tom.
>Hello,
I've installed the ODBC connector for MySQL and can go into Access and manually link to the MySQL tables. Everything works fine this way.
But rather than go into the Windows Data Source Adminstrator on each user's computer, how would you code an MS Access front end to connect to MySQL tables at startup? Where would you put the code and how would you call it when the Access database is opened?
Thanks for your help!
WPW07 wrote:
Hello,
I've installed the ODBC connector for MySQL and can go into Access and
manually link to the MySQL tables. Everything works fine this way.
But rather than go into the Windows Data Source Adminstrator on each
user's computer, how would you code an MS Access front end to connect
to MySQL tables at startup? Where would you put the code and how
would you call it when the Access database is opened?
Thanks for your help!
What I do is on my development system I create the ODBC datasource and all
table links.
Then in the code that executes at startup I re/create the ODBC datasource
dim cTxt As String
cTxt = "Description=bu ilding photos"
cTxt = cTxt & Chr(13) & "Database=PHOTO S"
cTxt = cTxt & Chr(13) & "Server=192.111 .111.11"
DBEngine.Regist erDatabase "BldgPhotos ", "SQL Server", True, cTxt
On Mar 15, 8:58 pm, "DFS" <nospam@dfs_.co mwrote:
WPW07 wrote:
Hello,
I've installed the ODBC connector for MySQL and can go into Access and
manually link to the MySQL tables. Everything works fine this way.
But rather than go into the Windows Data Source Adminstrator on each
user's computer, how would you code an MS Access front end to connect
to MySQL tables at startup? Where would you put the code and how
would you call it when the Access database is opened?
Thanks for your help!
What I do is on my development system I create the ODBC datasource and all
table links.
Then in the code that executes at startup I re/create the ODBC datasource
dim cTxt As String
cTxt = "Description=bu ilding photos"
cTxt = cTxt & Chr(13) & "Database=PHOTO S"
cTxt = cTxt & Chr(13) & "Server=192.111 .111.11"
DBEngine.Regist erDatabase "BldgPhotos ", "SQL Server", True, cTxt
Thanks DFS. That's exactly what I'm looking to do. Just one
question. Where do I find the "code that executes at startup" so that
I add the ODBC datasource code?
WPW07 wrote:
On Mar 15, 8:58 pm, "DFS" <nospam@dfs_.co mwrote:
>WPW07 wrote:
>>Hello,
>>I've installed the ODBC connector for MySQL and can go into Access and manually link to the MySQL tables. Everything works fine this way.
>>But rather than go into the Windows Data Source Adminstrator on each user's computer, how would you code an MS Access front end to connect to MySQL tables at startup? Where would you put the code and how would you call it when the Access database is opened?
>>Thanks for your help!
What I do is on my development system I create the ODBC datasource and all table links.
Then in the code that executes at startup I re/create the ODBC datasource
dim cTxt As String cTxt = "Description=bu ilding photos" cTxt = cTxt & Chr(13) & "Database=PHOTO S" cTxt = cTxt & Chr(13) & "Server=192.111 .111.11" DBEngine.Regis terDatabase "BldgPhotos ", "SQL Server", True, cTxt
Thanks DFS. That's exactly what I'm looking to do. Just one
question. Where do I find the "code that executes at startup" so that
I add the ODBC datasource code?
Create a Public Function (in a module) that gets called from a macro named
'autoexec'.
On Mar 15, 9:22 pm, "DFS" <nospam@dfs_.co mwrote:
WPW07 wrote:
On Mar 15, 8:58 pm, "DFS" <nospam@dfs_.co mwrote:
WPW07 wrote: Hello,
>I've installed the ODBC connector for MySQL and can go into Access and manually link to the MySQL tables. Everything works fine this way.
>But rather than go into the Windows Data Source Adminstrator on each user's computer, how would you code an MS Access front end to connect to MySQL tables at startup? Where would you put the code and how would you call it when the Access database is opened?
>Thanks for your help!
What I do is on my development system I create the ODBC datasource
and all table links.
Then in the code that executes at startup I re/create the ODBC
datasource
dim cTxt As String
cTxt = "Description=bu ilding photos"
cTxt = cTxt & Chr(13) & "Database=PHOTO S"
cTxt = cTxt & Chr(13) & "Server=192.111 .111.11"
DBEngine.Regist erDatabase "BldgPhotos ", "SQL Server", True, cTxt
Thanks DFS. That's exactly what I'm looking to do. Just one
question. Where do I find the "code that executes at startup" so that
I add the ODBC datasource code?
Create a Public Function (in a module) that gets called from a macro named
'autoexec'.
Great...thanks again! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Duane Winner |
last post by:
Hello all -
I'm having a small problem with the mysql startup script that ships with
MySQL-3.23.56-1.
I'm running on RedHat Linux.
It works fine, but I have a backup server that runs a script that passes
these commands remotely through ssh:
(1) ssh dbsys-dc "sudo /etc/init.d/mysql stop" (2) ssh dbsys-dc "sudo tar
|
by: Stefan Hinz |
last post by:
Degan,
jumping in to try and solve some problems that look pretty obvious to
me ...
> #options for default service (mysqld2)
> (mysqld2)
It should be , not (mysqld2).
|
by: MLH |
last post by:
Using MS Access, I have attached to MySQL servers in other states
and other countries on the other side of my router. But when I use the
MySQL ODBC driver 3.51 to connect to a MySQL server on my own LAN,
the driver tells me it cannot make the connection. Here are the ODBC
driver connection parms:
Data Source Name: (free field - name my "my linux box" will do nicely)
Host/Server Name (or IP) - something like MSQLUserName@ServerName.net...
|
by: kamilla |
last post by:
I have a mysql 3.5 server installed on a suse linux 8.1, with address 10.0.0.100.
Now I want to access that db from a W2K pc, address 10.0.0.200.
I am able to ping 10.0.0.100, but I cannot connect to the db, and get error 2013.
I have tried with MySQL Administrator 1.0 and also with ODBC.
The db on linux has
grant all on *.* to ''@'10.0.0.%'
and also tried
.... to root@10.0.0.200
and others seen on posted messages.
I can access that db...
|
by: steve |
last post by:
I like to create some temprary tables (in-memory tables) when mysql
starts up. How do I do that.
Thanks.
--
Posted using the http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbforumz.com/mySQL-set-temporary-tables-startup-ftopict224284.html
Visit Topic URL to contact author (reg. req'd). Report abuse:...
| |
by: Manzoorul Hassan |
last post by:
I am not able to connect to the mysql DB if I am not the root user. I
have already found identified an issue:
* mysql.sock is NOT located in /tmp
So, to get around it I created a sym link to the actual location
(/var/lib/mysql/mysql.sock). This file, and the sym link, are both
owned by root but they have full permission for all user. But the
parent directories are ONLY READ and EXECUTABLE for non root users.
|
by: Jeremy Dillinger |
last post by:
I am trying to design a program that will use data from a MySQL database.
Currently all the data is being used with PHP scripts from a website. I am
also trying to build a software solution that can use the same data. I have
gone through all the data connectors in Visual Basic.net and none of them
have the options for connecting to MySQL. Does anybody know how I would go
about doing this? Thanks in advance!
Jeremy
|
by: ironcito |
last post by:
Hello,
I installed Apache 2.0.55, PHP 5.1.1, and MySQL 5.0.17 (in that
order, on Windows XP). I have managed to get Apache and PHP working
right, and MySQL by itself seems ok too. However, when I try to do any
MySQL command within PHP, it just does nothing. No success, no error.
I tried uncommenting the line "extension=php_mysql.dll", but when I
restart Apache it tells me "PHP Startup: Unable to load dynamic library
php_mysql.dll - The...
|
by: Ananthu |
last post by:
Hi
I have done all the codings part for connecting mysql with java in eclipse environment.
Coding Part:
import java.sql.Connection;
import java.sql.DriverManager;
public class MysqlConnect {
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |