Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Sep 19, 2019 3:50 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: ODBC Plugin for Access
PostPosted: Wed Jan 30, 2013 8:33 am 
Offline

Joined: Mon Jan 21, 2013 6:05 pm
Posts: 18
Is there an ODBC plugin for Access databases in a Windows RB project?


Top
 Profile  
Reply with quote  
 Post subject: Re: ODBC Plugin for Access
PostPosted: Wed Jan 30, 2013 3:46 pm 
Offline

Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12388
Location: Portland, OR USA
The ODBC plugin works for Access databases. (At least it used to, I haven't tried it lately.)


Top
 Profile  
Reply with quote  
 Post subject: Re: ODBC Plugin for Access
PostPosted: Wed Jan 30, 2013 4:29 pm 
Offline

Joined: Mon May 08, 2006 8:50 pm
Posts: 780
I currently use the ODBC plug-in against an access db (2002). Works fine but may have problems with access 2007 and up. Don't know!


Top
 Profile  
Reply with quote  
 Post subject: Re: ODBC Plugin for Access
PostPosted: Wed Jan 30, 2013 4:32 pm 
Offline
User avatar

Joined: Sun Oct 28, 2012 4:54 am
Posts: 264
Location: Herts, UK
Paul

There is a pretty good example project here that may help

http://drdakin.tripod.com/REALbasic/REALbasic.htm

_________________
Real Studio 2012 R2
SysInfo
BackTrack Linux/BackBox Linux/Debian Lenny/Windows 7/Windows 8/OpenWRT/OpenBSD
& Yes it's me in the Avatar


Top
 Profile  
Reply with quote  
 Post subject: Re: ODBC Plugin for Access
PostPosted: Sat Feb 02, 2013 3:46 pm 
Offline

Joined: Mon Jan 21, 2013 6:05 pm
Posts: 18
What I need is a way to use an Access 2010 database.


Top
 Profile  
Reply with quote  
 Post subject: Re: ODBC Plugin for Access
PostPosted: Sun Feb 03, 2013 12:27 am 
Offline

Joined: Mon Jan 21, 2013 6:05 pm
Posts: 18
I found the answer for opening an Access 2010 database in RS 2012r2.1:
Dim adodbConnection as new OLEObject( "ADODB.Connection" )
Dim adodbCommand as new OLEObject( "ADODB.Command" )
Dim SQL as string
connectionString = "Provider=Microsoft.ACE.OLEDB.12.0; DataSource= yourDatabase .accdb; Persist Security Info=False;"
adodbConnection.Open(connectionString )
SQL = "SELECT ID,field1,field2,field3,field4,field5 FROM yourTable"
adodbCommand.ActiveConnection = adodbConnection
adodbCommand.CommandText = SQL
adodbRecordSet = adodbCommand.Execute
.
.
.etc.
Thanks for the help from Eugene Dakin http://drdakin.tripod.com/REALbasic/REALbasic.htm


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group