Share Your Source Code or Article

Do you have source code, articles, tutorials, web links, and books to share? You can write your own content here. You can even have your own blog.

Submit now...

Database Programming Made Easy

This tutorial will teach you step by step on how to connect and manipulate database. If you'd like to suggest a tutorial please write a comment at the bottom of this article.

Read more...

Hire Us to Do Your Work

Do you want a customized system? Do you want to setup your own website to do business? Then we are here to help you in your programming needs.

Read more...

Search

Visual Basic 6.0 with MS Access Database
9 replies [Last post]
User offline. Last seen 1 day 3 hours ago. Offline
Joined: 01/25/2010


Guyz,, need help

pwede ko ba maiconnect ang project ko sa MS database from the server computer

client-server kc project q pero ms access database q.. asap..

tnx...




=>> Lynesus <<==

Anonymous
visual basic 6.0

i have a problem using imagebox to search and retrive data from ms access.
pls help

User offline. Last seen 1 day 3 hours ago. Offline
Joined: 01/25/2010
re

more explanation about your problem in database please..

=>> Lynesus <<==

blowfly's picture
User offline. Last seen 1 week 6 days ago. Offline
Joined: 01/18/2010
i.e. I called data from

i.e. I called data from access txtStudName.Text = rs!Student_name.. kung walng laman ung feild na Student_name "invalid use of null" shows up..

"Live and let live!."
glenn_blowfly@gmail.com

User offline. Last seen 1 week 1 day ago. Offline
Joined: 02/12/2010
test first

test the field if is null or not before passing to the control

If Not IsNull(rs("Student_name")) Then
txtStudName.Text = rs!Student_name
End If

Anonymous
I called data from

try this code

if isnull(rs!Student_name) then
code here
else
code here
end if

yan lng ang logic nyan
sna mkatulong

blowfly's picture
User offline. Last seen 1 week 6 days ago. Offline
Joined: 01/18/2010
Help bros.."invalid use of null"

what should i do with this error,.. if my MSaccess db has no field value is there any extra code to be written on my form to skip to next validation?? anyone here who can help.. thanks! i.e:

"Live and let live!."
glenn_blowfly@gmail.com

User offline. Last seen 1 day 3 hours ago. Offline
Joined: 01/25/2010
re

hi there!

First, you need to make connection string of your data base from your vb project,,like this

Public cn As ADODB.Connection
Public rs As New ADODB.Recordset

Public Sub myCon()
Dim mDataSource As String

mDataSource = "database/kiosk.mdb"
Set cn = New ADODB.Connection

cn.CursorLocation = adUseClient
cn.CommandTimeout = 0
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & mDataSource & ";Persist Security Info=False"

Set rs = New ADODB.Recordset
End Sub

hope makatulong ito sa problema mo..

=>> Lynesus <<==

Anonymous
heLp NmN

guys help how to connect vb sa access database.. enrollment system kc project qoh.. plz..

User offline. Last seen 1 week 1 day ago. Offline
Joined: 02/12/2010
Maraming connection na pwede

Maraming connection na pwede itry...

* RDO
* DAO
* ADO

Post new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.

Step by Step Java Tutorial

In this tutorial you will learn how to program with Java. It has a rich of information to be educated well with Java.

Read more...

Do You Have Question?

Do you have any question related to computer programming? Visit our forum and post new topic on the category you like. Be gentle when asking a question.

Ask now...

Point of Sale

Point of Sale is very useful especially for supermarkets or restaurants. I have included a barcode scanner in this program. Please check it out.

Read more...