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

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.

(OP)
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.

(OP)
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
sam

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:

CODE

<%@ Language=VBScript %>
<html>
<head>
<body>
<%
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%>
       <td><b><%=whatever.name%></b></td>
<% next %>
</tr>

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

<%
rstemp.close
set rstemp=nothing
objConn.Close
set objConn=nothing
%>
</body>
</html>
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.

Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
Custom VB and Btrieve development.
http://www.mirtheil.com

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

(OP)
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!

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