Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Connecting to a dBASE database using CODE

Posted on 1998-08-18
1
Medium Priority
?
201 Views
Last Modified: 2013-11-24
Hi there,

I just want to ask how can i connect to dBASE using codes.

thanks in advance!

brandon
0
Comment
Question by:bmaranan
1 Comment
 

Accepted Solution

by:
hansbos earned 30 total points
ID: 1429516
Bmaranan,

Dim dbDatabase as Database
Dim recDbf as RecordSet
Set dbDatabase = OpenDatabase("c:\dir", False, True, "dBase III;")
Set recDbf = dbDatabase.OpenRecordset("file.dbf", dbOpenTable, dbReadOnly)
recDbf.MoveFirst
Do While Not recDbf.EOF
 'put code here
 recDbf.MoveNext
Loop
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question