Vb6 Data Report Error

Reply

Join Date: Aug 2007
Posts: 47
Reputation: locsin is an unknown quantity at this point 
Solved Threads: 0
locsin locsin is offline Offline
Light Poster

Vb6 Data Report Error

 
0
  #1
Aug 30th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 3
Reputation: omengski is an unknown quantity at this point 
Solved Threads: 0
omengski omengski is offline Offline
Newbie Poster

Re: Vb6 Data Report Error

 
0
  #2
Aug 30th, 2007
Can you provide the code here? Probably there is an error connecting to the database.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 300
Reputation: jireh is an unknown quantity at this point 
Solved Threads: 42
jireh's Avatar
jireh jireh is offline Offline
Posting Whiz

Re: Vb6 Data Report Error

 
0
  #3
Sep 4th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 47
Reputation: locsin is an unknown quantity at this point 
Solved Threads: 0
locsin locsin is offline Offline
Light Poster

Re: Vb6 Data Report Error

 
0
  #4
Sep 4th, 2007
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC