Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB Databases
| Search | Today's Posts | Mark Forums Read
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases 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 October 14th, 2004, 03:37 AM
Authorized User
 
Join Date: Oct 2004
Location: , , United Kingdom.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jolzy
Default How to detect the record modified (ado)

Hi

Anyone knows how to detect there has been modified the record?


I am trying to develop a multi user application with VB6.
using ado with msacess
and I like to if there is a way to tell the user that the record they trying to update it has been modified another user

thanks :)


 
Old October 27th, 2004, 02:07 AM
Authorized User
 
Join Date: Oct 2004
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Gaz LG Danha
Default

Add an extra table in your access db (dbtables) with user and db tablenames as headers. Fill in the tablesnames field with all the names of the tables in you db. Now each time an update button is pressed on your application, it should first search the dbtables table for a match to the current table you wish to update and so display your message with the last user who updated the form. In the code, you update the dbtable table by filling in the user field against the corresponding db table field. The user field can be populated by the login form I presume you have.


It Ends Here
 
Old October 28th, 2004, 09:54 AM
Aal Aal is offline
Authorized User
 
Join Date: Oct 2004
Location: , , .
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yeah that's fine too, you will a need a form as a report
for that thing, that only open by administrator of the program
this is might be usefull for administrator program, and filtered by date/time
or else . . .


 
Old October 28th, 2004, 02:18 PM
Authorized User
 
Join Date: Oct 2004
Location: , , United Kingdom.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jolzy
Default

thanks

:)





Similar Threads
Thread Thread Starter Forum Replies Last Post
last record with ado.net CyberW ASP.NET 3.5 Basics 5 November 6th, 2008 04:39 PM
Getting record modified info kopyguy ASP.NET 2.0 Basics 0 September 27th, 2007 05:54 AM
ADO Record Locking pjohanne VB Databases Basics 3 March 9th, 2006 05:42 AM
ADO record copy and add to table Freddyfred Access 2 February 16th, 2005 10:36 PM
ADO Record Set Question virtualdave Pro VB Databases 4 February 20th, 2004 12:21 PM





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