Click here to Skip to main content
15,912,932 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralWMPlayer active x, begining of tracks get cut off Pin
Glen Conaway1-Jul-04 7:30
Glen Conaway1-Jul-04 7:30 
GeneralTrigering Application at specified intervals Pin
kashif_kazi1-Jul-04 4:53
kashif_kazi1-Jul-04 4:53 
GeneralRe: Trigering Application at specified intervals Pin
Dave Kreskowiak1-Jul-04 5:33
mveDave Kreskowiak1-Jul-04 5:33 
GeneralRe: Trigering Application at specified intervals Pin
kashif_kazi1-Jul-04 19:58
kashif_kazi1-Jul-04 19:58 
GeneralRe: Trigering Application at specified intervals Pin
Dave Kreskowiak2-Jul-04 2:46
mveDave Kreskowiak2-Jul-04 2:46 
GeneralRe: Trigering Application at specified intervals Pin
kashif_kazi2-Jul-04 19:59
kashif_kazi2-Jul-04 19:59 
GeneralCrystal Reports Problem Pin
fizzer6661-Jul-04 4:52
fizzer6661-Jul-04 4:52 
GeneralRe: Crystal Reports Problem Pin
Dave Kreskowiak1-Jul-04 5:45
mveDave Kreskowiak1-Jul-04 5:45 
fizzer666 wrote:
'First change the directory of the database to the application folder
Try
Me.OleDbConnection1.ConnectionString = _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source= Asset Control.mdb"


Well, according to the comment you put in there, this code does NOT change the directory of anything. It just assumes that the current directory is the one with the .MDB database. You really can't assume anything, so what you might want to do is prepend the path to the .EXE file that started your app to the filename of the database (assuming it's in the smae directory as the .EXE file.)
Imports System.IO
.
.
.
    Dim connString As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
        "Data Source=" & Path.Combine(Application.StartupPath, "Asset Control.mdb")

The same thing would apply to your Crystal Reports files:
'Change Report Source to application folder
Try
    Me.CrystalReportViewer1.ReportSource = Path.Combine(Application.StartupPath, "Reports\CRAssetsByAssetType1.rpt")
Catch eConnection As System.Exception
.
.
.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Crystal Reports Problem Pin
fizzer6662-Jul-04 4:04
fizzer6662-Jul-04 4:04 
GeneralRe: Crystal Reports Problem [EDITED] Pin
Dave Kreskowiak2-Jul-04 4:15
mveDave Kreskowiak2-Jul-04 4:15 
GeneralRe: Crystal Reports Problem [EDITED] Pin
fizzer6662-Jul-04 4:54
fizzer6662-Jul-04 4:54 
GeneralRe: Crystal Reports Problem [EDITED] Pin
fizzer6665-Jul-04 4:13
fizzer6665-Jul-04 4:13 
GeneralRead the decibel from a mic. Pin
sybux20001-Jul-04 1:36
sybux20001-Jul-04 1:36 
GeneralRe: Read the decibel from a mic. Pin
Dave Kreskowiak1-Jul-04 4:02
mveDave Kreskowiak1-Jul-04 4:02 
QuestionHow to fill the list of one combo box to another combo box? Pin
Ravi S.V.30-Jun-04 21:08
Ravi S.V.30-Jun-04 21:08 
AnswerRe: How to fill the list of one combo box to another combo box? Pin
Dave Kreskowiak1-Jul-04 4:15
mveDave Kreskowiak1-Jul-04 4:15 
GeneralRe: How to fill the list of one combo box to another combo box? Pin
beowulfagate1-Jul-04 20:18
beowulfagate1-Jul-04 20:18 
GeneralRe: How to fill the list of one combo box to another combo box? Pin
Ravi S.V.1-Jul-04 21:11
Ravi S.V.1-Jul-04 21:11 
GeneralRe: How to fill the list of one combo box to another combo box? Pin
Dave Kreskowiak2-Jul-04 2:37
mveDave Kreskowiak2-Jul-04 2:37 
QuestionWindows or Web Service, Which? Pin
leadpencil30-Jun-04 19:53
leadpencil30-Jun-04 19:53 
AnswerRe: Windows or Web Service, Which? Pin
Dave Kreskowiak1-Jul-04 3:28
mveDave Kreskowiak1-Jul-04 3:28 
Questionhow to capture an exe file file name into vb form Pin
saimram30-Jun-04 18:50
saimram30-Jun-04 18:50 
AnswerRe: how to capture an exe file file name into vb form Pin
Dave Kreskowiak1-Jul-04 3:21
mveDave Kreskowiak1-Jul-04 3:21 
Generalurgent......Pocket Pc volume Pin
Prowess30-Jun-04 17:54
Prowess30-Jun-04 17:54 
GeneralRe: urgent......Pocket Pc volume Pin
Dave Kreskowiak1-Jul-04 3:17
mveDave Kreskowiak1-Jul-04 3:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.