INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Connecting an Access DB to a Godaddy hosted MySQL database...

Connecting an Access DB to a Godaddy hosted MySQL database...

Connecting an Access DB to a Godaddy hosted MySQL database...

(OP)
As the subject says, I have an Access Database being used on my computer... I want to connect to a MySQL database I created on a Godaddy hosted server, of which I am the admin of. I want to query the db to validate subscription status.

Access database has a field in a table for the users email address (which is how their subscription is recorded).

MySQL database has a few fields, but for the query I need to pull 2 fields (EMAILADDRESS, DATEENDING), with this I can determine if the user (by EmailAddress) is still authorized to use the Database(by DateEnding).

Can this be done in VBA code on the MAINfrm_Open Event? And if so, can I get some help with the connection string? I would imagine my SELECT qry would be:

CODE

Dim VALIDATEsql
VALIDATEsql = "SELECT * FROM `PGRMAUTH` WHERE `MEMBERID` = " & forms!MAINfrm!MAINSUBfrm!MEMBERSEMAILbox.value  '<-----Used the MyPHPAdmin SQL builder within the   
                                                                                                               'database management tools to build that.  I know 
                                                                                                               'it's different than the way I would write it in VBA 
                                                                                                               'Code for SQL queries of my local tables. 

RE: Connecting an Access DB to a Godaddy hosted MySQL database...

I'm probably not reading this correctly but couldn't you just set up a local system or user ODBC connection to the remote MySQL server and then link the necessary table within Access? (This would depend on Godaddy's allowance for you to make remote connections to their MySQL servers...some discount hosts do not offer this ability.)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close