Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 9th, 2008, 05:43 AM
Registered User
 
Join Date: Jan 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to insert unique filelds

Hello

I am using windows XP

I need a small programme in Visual basic 6 with Access 2000

I have two tables for example one table named student other table named section

In student table rno is primary key. In section table Rollno is primary key


Both tables have datas, I want to insert datas from student to section.

The coditions is unique datas only (ie. some datas already in section while inserting
datas from student to section the existing datas should be eliminated they wont be inserted)
( by comparin rno with rollno)( i avoid duplicate appending)

Please me code for inserting tables using ADODB recordset




A.Senthil kumar

 
Old September 9th, 2008, 06:01 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Hi Senthil

It looks like you are outsourcing your assignment to the Wrox team:)

Here are some good examples for you to refer (http://www.timesheetsmts.com/adotutorial.htm)

http://support.microsoft.com/kb/183606


http://www.aspfree.com/c/a/Microsoft...ccess-and-ADO/

http://www.w3schools.com/ado/ado_connect.asp

Also if I can ask, please ensure that you write a collection of data or multiple data as 'data' and not 'datas'

Cheers
Shasur




http://www.dotnetdud.blogspot.com

VBA Tips & Tricks (http://www.vbadud.blogspot.com)
 
Old September 9th, 2008, 10:16 PM
Registered User
 
Join Date: Jan 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for reply

I am beginner to VB. I am developing small projects to learn visual basic 6. I wish to transfer multiple rows from one table to another table in same database my condition is " I don't insert duplicate entries" . IF same "rono" appears in second table that row should be ignored. I am outsourcing my work. I wish to learn some advance database concepts.

Thanks
senthil






Similar Threads
Thread Thread Starter Forum Replies Last Post
Pulling unique data from 1 table insert into anoth shawn.bordeaux Classic ASP Basics 0 November 9th, 2008 10:11 PM
duplicates and unique sheba0907 SQL Language 6 July 3rd, 2006 02:43 PM
Two unique Attribues shumba XML 5 February 28th, 2006 09:05 PM
Unique Problem rekha_jsr Classic ASP Basics 0 December 10th, 2005 12:21 AM
Insert Record Fails W/ Unique Constraint snw C# 0 September 2nd, 2005 02:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.