Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Database and Reporting > Beginners VB database help needed!


Reply
 
Thread Tools Display Modes
  #1  
Old 01-05-2004, 05:28 PM
moss2076 moss2076 is offline
Newcomer
 
Join Date: Jan 2004
Posts: 13
Default Beginners VB database help needed!


Hi everyone, im brand new to VB and i need to know how to make VB interact with databases.

I know how to set up the data and text boxes to display info from a table, but cant work out the basic functions -

eg - database called - dbtest.mdb
1 table called - details
2 fields called - name, age

I need to know how to program functions to allow VB to Add new record, delete, search, etc.

Any help or samples would be greatly appreciated!!

Tom
Reply With Quote
  #2  
Old 01-05-2004, 05:37 PM
wfunk wfunk is offline
Newcomer
 
Join Date: Jan 2004
Posts: 6
Default

Quote:
Originally Posted by moss2076
Hi everyone, im brand new to VB and i need to know how to make VB interact with databases.

I know how to set up the data and text boxes to display info from a table, but cant work out the basic functions -

eg - database called - dbtest.mdb
1 table called - details
2 fields called - name, age

I need to know how to program functions to allow VB to Add new record, delete, search, etc.

Any help or samples would be greatly appreciated!!

Tom




Hi Tom,

There are several options or approaches the most popular of which is using an ADO connection.I would recommend visiting http://www.vbtutor.net/vbtutor.html and checking out chapter 21 (depending on how new you actually are,,, this is a good free starting point). All of the Add, Edit search etc things are covered in a quick fashion.

Willie
Reply With Quote
  #3  
Old 01-05-2004, 05:53 PM
00100b's Avatar
00100b 00100b is offline
Martian In Disguise

Retired Moderator
* Guru *
 
Join Date: May 2003
Location: Minneapolis, MN
Posts: 9,566
Default

You might want to check out this forum's Frequently Asked Database Questions thread as well.
__________________
The only stupid question is the one that goes un-asked.
Reply With Quote
  #4  
Old 01-05-2004, 10:41 PM
tom2knox's Avatar
tom2knox tom2knox is offline
Junior Contributor
 
Join Date: Jul 2003
Location: Tondo Philippines
Posts: 313
Default

hope this helps you...
Attached Files
File Type: zip ADOsample.zip (8.6 KB, 11 views)
__________________
On Error Resume Next
If Code = vb Then
use [vb] [/vb]
End If
Reply With Quote
  #5  
Old 01-06-2004, 04:17 AM
SURESH MENON SURESH MENON is offline
Junior Contributor
 
Join Date: Feb 2003
Location: Mumbai
Posts: 259
Default

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VB connection to online Access Database - please help! Phats_Domino Database and Reporting 7 01-26-2004 01:48 AM
QB to VB Conversion - By AIO BillSoo Tutors' Corner 0 08-06-2002 11:37 AM
User-defined type not defined (im new) skript_kiddie General 8 06-16-2002 02:06 PM
VB application sharing a database on a LAN snoopycrx Database and Reporting 1 04-20-2002 09:52 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->