User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 361,560 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,014 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser:
Views: 421 | Replies: 5 | Solved
Reply
Join Date: Jul 2007
Location: philippine
Posts: 64
Reputation: jaasaria is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
jaasaria's Avatar
jaasaria jaasaria is offline Offline
Junior Poster in Training

access and mySql connection combination...plss help

  #1  
May 13th, 2008
hi guyzz, i wanted to have two connection using access and mysql in my proj. my access was my main db connection and what ever data in my access will store directly in mysql db when their is internet connection...

I declared 2 fuction connection but my problem is the switching of the recordset. "OpenRS" and "OpenRS2"

i declared "OpenRS" in every table in Access but my second connection is "OpenRS2" for my mysql.. how can i use the OpenRS2 in saving that will no change in every code in every forms.


any help or comment will appreciated........... thx in advance..

jaa
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2007
Location: Bangalore,India
Posts: 1,128
Reputation: debasisdas is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 66
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Veteran Poster

Re: access and mySql connection combination...plss help

  #2  
May 14th, 2008
instead of hard coding the recordset object open and close that dynamically through a sub procedure.
Share your Knowledge.
Reply With Quote  
Join Date: Jul 2007
Location: philippine
Posts: 64
Reputation: jaasaria is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
jaasaria's Avatar
jaasaria jaasaria is offline Offline
Junior Poster in Training

Re: access and mySql connection combination...plss help

  #3  
May 14th, 2008
thxxx for the idea dude.......
Reply With Quote  
Join Date: Jul 2007
Location: philippine
Posts: 64
Reputation: jaasaria is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
jaasaria's Avatar
jaasaria jaasaria is offline Offline
Junior Poster in Training

Re: access and mySql connection combination...plss help

  #4  
May 14th, 2008
dude..........any detailed information... i tried everything but i cant do exactly the code..

any code that can give me idea...?????

or any cluess again........


thxx for viewing my thread....
Reply With Quote  
Join Date: Feb 2008
Location: Cebu, Philippines
Posts: 122
Reputation: cometburn is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 19
cometburn's Avatar
cometburn cometburn is offline Offline
Junior Poster

Re: access and mySql connection combination...plss help

  #5  
May 15th, 2008
mySQl connection string (requires a mysqlODBC driver)
  1. Public Const sqlCon = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=<Server address>;DATABASE=<Database name>;USER=user;PASSWORD=password;OPTION=3"

Access Connection string
  1. sqlCon = "PROVIDER= MICROsoft.jet.oledb.4.0;persist security info=false;data source=" & App.Path & "\Database.mdb"

hope this helps
Proud to be Philippine made...
Reply With Quote  
Join Date: Jul 2007
Location: philippine
Posts: 64
Reputation: jaasaria is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
jaasaria's Avatar
jaasaria jaasaria is offline Offline
Junior Poster in Training

Re: access and mySql connection combination...plss help

  #6  
May 16th, 2008
wow pinoy...... thx dude.. for the idea..
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Thread Tools Display Modes

Other Threads in the Visual Basic 4 / 5 / 6 Forum

All times are GMT -4. The time now is 2:32 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC