Visual Basic Sample Code on How to Establish via Internet Connection

0 comments

Posted on 3rd July 2011 by Admin in Visual Basic .Net

, , ,

‘Visual Basic can connect the database through the internet connection, this is very useful when you want to centralize the database or connect the different locations let say for example the company has three ‘branches in different cities or country so you must setup one for database server and the rest connect the server as client.

‘Visual Basic Sample Code

Dim RS As Recordset
Dim cnnGeneric As Connection
Set Conn = New Connection
Conn.Open

“Provider=MS Remote;” _
& “Remote Provider=MSDataShape;” _
& “Remote Server=http://www.mydomain.com;” _
& “Data Source=Employee;” _
& “User Id=myusername;Password=mypassword;”

Set RS = New Recordset

With RS
.CursorLocation = adUseClient
.Open strQuery, Conn, adOpenStatic, adLockReadOnly
.ActiveConnection = Nothing
End

With

Customers Inventory System

0 comments

Posted on 1st May 2010 by Admin in Database Programming |Visual Basic 6

, , ,

This application is suitable for a car shop. Whenever the mechanic finish a job on a car the only thing he has to do is to use the service wizard and select the parts he used from a list and the number of the parts. The application substract the number of parts used from the inventory and gives the subtotal and total price.

Download Project

Download Project