944,025 Members | Top Members by Rank

Ad:
Aug 30th, 2007
0

Vb6 Data Report Error

Expand Post »
HI

I AM COMPUTER SCIENCE STUDENT.

My Instructor gave me thesis project. Any database program at any programming languages. This is stand alone program. I designed my program in visual basic 6.0 which is record keeping. It works fine in my computer. But when i installed it in other computer without visual basic 6 system and the time of my presentation an error occured "Invalid data source". All part of my program using data report do not works at that time. My instructor gave me a chance to fix this problem and present it again.

Anyone experienced this problem?

Help me please?

Thankyou
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
locsin is offline Offline
47 posts
since Aug 2007
Aug 30th, 2007
0

Re: Vb6 Data Report Error

Can you provide the code here? Probably there is an error connecting to the database.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
omengski is offline Offline
3 posts
since Aug 2007
Sep 4th, 2007
0

Re: Vb6 Data Report Error

In your dataenvironment put this in Initialize event
I used DAO to connect to database I put this code.
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Connection1.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & App.Path & "\Sample.mdb") & "; Persist Security Info=False"
I don't know if this is what you are looking for. Hope this would help
Last edited by jireh; Sep 4th, 2007 at 12:13 am.
Reputation Points: 11
Solved Threads: 49
Posting Whiz
jireh is offline Offline
316 posts
since Jul 2007
Sep 4th, 2007
0

Re: Vb6 Data Report Error

Thank you for your help. Regarding the "invalid data source" error. It occured only in data report. But the from the other operation. Like Adding, editing, viewing, deleting of records from the database works fine and the microsoft access database is present. I only use one access data base with 2 tables. I use free installer to make my program to install easy. Some required files i try to copy in this path because it is required windows/system32. These files are .dll, tbl, ocx.. But the error still displayed. I try to use Visual basic "Package and Deployment Wizard" to make installer but when i try to setup again to other computer without visual basic. MDAC_Type.exe installer displayed error "Files are out of date". Thank you again and I hope you can help me for this problem.
Reputation Points: 10
Solved Threads: 0
Light Poster
locsin is offline Offline
47 posts
since Aug 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: random number generation
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: how to obtain the date and time of server from client by vb coding





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC