Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To 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 May 4th, 2004, 09:25 AM
Registered User
 
Join Date: May 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Adodc records navigation

How can I get the record (number of the record) that I'm seeing with the adodc ? I wanna use the properties of the control like, if I click on button to move next or move last.

Thanx

 
Old May 6th, 2004, 01:39 PM
Registered User
 
Join Date: May 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

 I REALLY DONT UNDERSTAND YOUR PROBLEM BUT I CAN GIVE U CODES FOR NEXT FIRST LAST AND PREVIOUS COMMAND BUTTONS

double click on next command button
private subcmdnext
Adodc1.recordset.movenext
text1.text=Adodc1.recordset.fields ("the name u kept in ur database for text1")
do same for all ur textboxes

double click prev comman dbutton
private subcmdpre]
adodc1.recordset.fields.moveprevious
text1.text=Adodc1.recordset.fields ("the name u kept in ur database for text1")
do same for all ur textboxes

private sub cmd last
Adodc1.recordset.fields.movelast
adodc1.recordset.fields.moveprevious
text1.text=Adodc1.recordset.fields ("the name u kept in ur database for text1")
do same for all ur textboxes

private sub cmdfirst
adodc1.recordset.fields.movefirst
adodc1.recordset.fields.moveprevious
text1.text=Adodc1.recordset.fields ("the name u kept in ur database for text1")
do same for all ur textboxes

I DONT KNOW THAT THIS CODES ARE THE SAME WHICH U WANT BUT JUST TRY THEM MAY BE IT WORK







Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with ADODC and Access fm2005 Pro VB Databases 5 June 11th, 2007 07:20 AM
ADODC PROBLEM cnkumar74 VB Components 0 February 16th, 2007 03:27 AM
adodc and flexgrid! smileii VB Databases Basics 6 October 18th, 2006 01:33 PM
Trouble with ADODC ctrl nav1 VB How-To 3 June 21st, 2005 09:19 AM
Datagrid and ADODC cindy Beginning VB 6 1 November 11th, 2003 04:28 AM





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