Contact US

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.

Students Click Here

Newbie need help with peachtree and access using Btreive.

Newbie need help with peachtree and access using Btreive.

Newbie need help with peachtree and access using Btreive.

hi there, everyone
my name is samlaleo
i am new to asp programming using Access and also peachtree.i have 3 days to start this process.can anyone help

1)how do i setup ODBD and link in ASP and what kinda of drivers do i need.
2)how can i extract information from peachtree and add onto my access database.
3)or are there sites that i can visit to help me further.
any kind of help will surely save me.

thx in advance to everyone here.

RE: Newbie need help with peachtree and access using Btreive.

thx mirteil ,

the link is very helpful
if get the ODBC setup how do i link the driver in asp?
do you by any chance have a simple code to call the procedure ?

thx a million

RE: Newbie need help with peachtree and access using Btreive.

Accessing an ODBC driver from ASP is fairly standard. Here's a very simple example I use to test connectivity:


<%@ Language=VBScript %>
Dim objConn
dim rsTemp
Set objConn = server.CreateObject("ADODB.Connection")
set rstemp = Server.CreateObject("ADODB.RecordSet")
objConn.ConnectionString = "DSN=demodata"
dim strCon, strDbPathAndName

objConn.Open strCon

mySQL = "Select * from class"
set rstemp=objConn.Execute(mySQL)
<table border="1"><tr>
<% 'Put Headings On The Table of Field Names
for each whatever in rstemp.fields%>
<% next %>

' Now lets grab all the records
DO  UNTIL rstemp.eof %>
   <% for each whatever in rstemp.fields
      if isnull(thisfield) then
      end if
      if trim(thisfield)="" then
      end if%>
             <td valign="top"><%=thisfield%></td>
   <% next %>

set rstemp=nothing
set objConn=nothing
You'll need to change the connection string ("DSN=") to match your Data Source Name and you'll need to change the SQL statement ("Select * from class") to match what you need to access.

Certified Pervasive Developer
Certified Pervasive Technician
Custom VB and Btrieve development.

RE: Newbie need help with peachtree and access using Btreive.

thx a million mirtheil,

great example.

so this mean if i wanna get the data from peachtree all i have to do is change the "server.CreateObject("ADODB.Connection")" to "pervasive drive"? am i right?

i since downloaded the sql8 30 days trial (Version 8.7 build 014)from pervasive site to see how it can help me get the data from peachtree,but the problem i face is when i install it says updating ODBC driver and never seem to finish installing."confused"
any idea why?

i know this sound like i am pain in the butt, but i really appreciate the help i can get.

P.S. since my company have Peachtree complete 2003 do i need to purchase the pervasive drivers if it meets my requiremen?

thx in advance.

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! Already a Member? Login

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