Click here to Skip to main content
16,016,789 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Callback function Pin
OICU8125-Jan-05 18:19
OICU8125-Jan-05 18:19 
GeneralRe: Callback function Pin
Tomaz Rotovnik5-Jan-05 20:03
Tomaz Rotovnik5-Jan-05 20:03 
GeneralRe: Callback function Pin
OICU8125-Jan-05 20:47
OICU8125-Jan-05 20:47 
Generaltextboxes to datagrid Pin
Makniteasy3-Jan-05 23:25
Makniteasy3-Jan-05 23:25 
GeneralRe: textboxes to datagrid Pin
Ritesh12344-Jan-05 3:53
Ritesh12344-Jan-05 3:53 
GeneralRe: textboxes to datagrid Pin
Makniteasy4-Jan-05 8:51
Makniteasy4-Jan-05 8:51 
Generaloledb error Pin
GaryKoh3-Jan-05 21:17
GaryKoh3-Jan-05 21:17 
GeneralRe: oledb error Pin
Dave Kreskowiak4-Jan-05 5:56
mveDave Kreskowiak4-Jan-05 5:56 
GaryKoh wrote:
Dim myconnection As New OleDbConnection("provider=microsoft.jet.oledb.4.0; datasource = Application.ExecutablePath + \LibrarySystem.mdb")

This is your connection string. So it actually evaluates the variable you put in it, shouldn't it look more like this:
Dim myconnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Application.ExecutablePath & "\LibrarySystem.mdb")

Better yet, assemble the path name to the database using the proper function:
Dim dbPath As String = Path.Combine(Application.ExecutablePath, "LibrarySystem.mdb")

Then use this to open you database:
Dim myconnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dbPath)



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

GeneralAdding image to listview Pin
kobezt083-Jan-05 20:47
kobezt083-Jan-05 20:47 
QuestionADO and MySql Database in VB6 ? Pin
paykani3-Jan-05 20:12
paykani3-Jan-05 20:12 
AnswerRe: ADO and MySql Database in VB6 ? Pin
Roger Wright4-Jan-05 4:56
professionalRoger Wright4-Jan-05 4:56 
Generalrichtextbox askin for help Pin
Mohammad Daba'an3-Jan-05 20:07
Mohammad Daba'an3-Jan-05 20:07 
GeneralSecurity Pin
lafser633-Jan-05 15:19
lafser633-Jan-05 15:19 
GeneralRe: Security Pin
Dave Kreskowiak4-Jan-05 5:47
mveDave Kreskowiak4-Jan-05 5:47 
Generalimage property Pin
Fantasca3-Jan-05 13:15
Fantasca3-Jan-05 13:15 
GeneralRe: image property Pin
Tom John3-Jan-05 23:42
Tom John3-Jan-05 23:42 
GeneralRe: image property Pin
Fantasca4-Jan-05 0:08
Fantasca4-Jan-05 0:08 
GeneralDatePicker default value Pin
bexarcounty3-Jan-05 12:00
bexarcounty3-Jan-05 12:00 
GeneralMouse_Hover Event Pin
azam3163-Jan-05 9:52
azam3163-Jan-05 9:52 
Questionhow to compare two images ? Pin
3-Jan-05 8:31
suss3-Jan-05 8:31 
Questionhow I read bmp's pixel? Pin
Mars9993-Jan-05 7:51
Mars9993-Jan-05 7:51 
Generalneed help Pin
RygleD3-Jan-05 6:44
RygleD3-Jan-05 6:44 
GeneralWindows Clipboard Pin
Damian Castroviejo3-Jan-05 5:55
Damian Castroviejo3-Jan-05 5:55 
GeneralAccess to T-SQL Pin
edd1em3-Jan-05 4:53
edd1em3-Jan-05 4:53 
GeneralMake Data Grid Up to date Pin
widhie_prihatna3-Jan-05 1:11
widhie_prihatna3-Jan-05 1:11 

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.