Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,459 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,834 people online right now. Registration is fast and FREE... Join Now!




VB 6.0 installing proper VB references on XP - Vista client computers

 
Reply to this topicStart new topic

VB 6.0 installing proper VB references on XP - Vista client computers, I need help getting the right files on target machines

bhmncoder
11 Aug, 2008 - 01:36 PM
Post #1

New D.I.C Head
*

Joined: 11 Aug, 2008
Posts: 2

I need to know how to set references in VB so that this connection (works fine on development machine) works on XP / Vista client machines.

I keep getting "Unrecognized database format" on client machines but it runs fine on my development machine.

All code is attached.

CODE


Private Sub Form_Load()


' for access 2007 only data1.ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False;Extended Properties=DBQ=" & App.Path & "\testdb.accdb;DefaultDir=" & App.Path & "\;Driver={Microsoft Access Driver (*.mdb, *.accdb)};DriverId=25;FIL=MS Access;MaxBufferSize=2048;MaxScanRows=8;PageTimeout=5;SafeTransactions=0;Threads
=6;UID=admin;UserCommitSync=Yes;"
' below for access 2003
data1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path$ + "\testdb.mdb;Persist Security Info=False"

data1.RecordSource = "select * from test"
data1.Refresh

' I also want the code to access using ado recordsets without the datacontrol
' showing a simple select query to get all records
' and one to delete all records
' here

End Sub



Attached File(s)
Attached File  sampleADO.zip ( 16.81k ) Number of downloads: 15
User is offlineProfile CardPM
+Quote Post

ertan2002
RE: VB 6.0 Installing Proper VB References On XP - Vista Client Computers
13 Aug, 2008 - 05:02 PM
Post #2

New D.I.C Head
*

Joined: 13 Aug, 2008
Posts: 4

you have install sql server, look

http://www.google.com.tr/search?hl=tr&...G=Ara&meta=
User is offlineProfile CardPM
+Quote Post

bhmncoder
RE: VB 6.0 Installing Proper VB References On XP - Vista Client Computers
13 Aug, 2008 - 05:18 PM
Post #3

New D.I.C Head
*

Joined: 11 Aug, 2008
Posts: 2

QUOTE(ertan2002 @ 13 Aug, 2008 - 06:02 PM) *



No, you do not need to install sql server to get VB 6.0 access 2003 db to work.


User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 03:55PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month