Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,174,064 members, 7,890,506 topics. Date: Monday, 15 July 2024 at 03:05 PM

Vb. Net Alert - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Vb. Net Alert (1102 Views)

I Need A Help To Write A Simple Login Form Using Vb.net / Vb.net Crystal Report & Dataset / Post Ur Vb 6.0 Questions Here (2) (3) (4)

(1) (Reply) (Go Down)

Vb. Net Alert by bigafees: 3:58pm On Jul 28, 2009
I'M NEW PROGRAMMER ON VB.NET BUT GOO IN VB6
PLS CAN ANYBODY IN THE HOUSE ASSIST ME ON HOW I CAN CONNECT MS ACCESS TO VB.NET

THANK U
Re: Vb. Net Alert by BigStar1(m): 10:09am On Jul 30, 2009
Imports System.Data.OleDb

Module Module1

   Sub Main()
       Dim conString As String
       conString = "your connection string"
       Dim oleCon As OleDbConnection
       oleCon = New OleDbConnection(conString)
       oleCon.Open()
       If ConnectionState.Open = oleCon.State Then
           Console.WriteLine("Connected!"wink
       End If
       Console.ReadLine()
   End Sub

End Module

to get your connection string
open notepad,
save the empty notepad with filename.udl
go to where you saved it double click to open it,
click on the provider tab
Select Microsoft jet 4.0 oleDB provider as your provider
click next
click the browse button to select your database
test you connection by clicking test connection
click OK if the connection succeed. If not that should error on your side

go to where you save your thingy ( i mean the filename.udl)
right click to open with notepad
your connection string is there and you are good to go.


[b]NOTE[/b]The code was writing as console application.
You can also test it there and try to use it on pages.

Call for more 08060678106, 08052451877

Re: Vb. Net Alert by bigafees: 6:02pm On Jul 30, 2009
Thanks Big Star, I will try it
Re: Vb. Net Alert by BigStar1(m): 5:01pm On Aug 03, 2009
any progress?
Re: Vb. Net Alert by bigafees: 5:14pm On Aug 03, 2009
Bigstar

I try it but still give some error, the code are my going to code all under save command?
Re: Vb. Net Alert by BigStar1(m): 2:58pm On Aug 04, 2009
NO You click on file menu then New Project . Under template, select Console Application.
Copy and paste the code and replace the connection string with your own.
NB Make sure you select Visual Basic as your language
Re: Vb. Net Alert by Kobojunkie: 3:57pm On Aug 04, 2009
You need to learn to google for solutions. And not just google but READ the solutions to better understand and know how to apply them. Try accessing the database the same way you used to in VB. If the problem is that you are unable to connect, then try troubleshooting from the other end by making sure you connection string is correct and you have permissions and every other variable dealt with.

(1) (Reply)

Help: Are A Programer And Software Developer? Hop In / Newbie Needs Help In 'programming' / Money Transfer Program. Please I Need Info.

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 13
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.