RSS Forums RSS
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums

reading records from a .dbf file

Join Date: Jul 2007
Location: Philippines
Posts: 255
Reputation: jireh is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 28
jireh's Avatar
jireh jireh is offline Offline
Posting Whiz in Training

Re: reading records from a .dbf file

  #20  
Jul 23rd, 2007
Hi Vee,

you know I'm confused, why we dont need to mention the dbf file but only their path?

the connection is now ok but there's still a problem on me here why I can't use it in a query? here's my code for that dbf.

Set db = OpenDatabase(App.Path & "\", False, False, "dBase IV;")
Set Data1.Recordset = db.OpenRecordset("select * from color where clrcode='" & Text1.Text & "'")
Is there something I should add in my query?
The error is in here
      Set Data1.Recordset = db.OpenRecordset("select * from color where clrcode='" & Text1.Text & "'")
Last edited by jireh : Jul 23rd, 2007 at 10:00 pm.
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 5:35 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC