Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Database and Reporting > BeforeUpdate


Reply
 
Thread Tools Display Modes
  #1  
Old 12-06-2003, 02:30 PM
martim07 martim07 is offline
Newcomer
 
Join Date: Nov 2003
Posts: 3
Default BeforeUpdate


Does anyone know of a good site where I can see examples of how to use BeforeUpdate, AfterUpdate, BeforeInsert, and AfterInsert?

Thanks
Reply With Quote
  #2  
Old 12-06-2003, 04:10 PM
Shurik12 Shurik12 is offline
Steppe Walker

Retired Moderator
* Expert *
 
Join Date: Jul 2002
Location: Ukraine/Russia/Belgium
Posts: 7,227
Default

Hi,

MSDN gives this example for BeforeUpdate.
I think the rest of events follow.
Do you need something more elaborated?
------------------
BeforeUpdate Event Example
This example displays a message that tells the user to enter a value in the first column before the grid can be updated.

Private Sub DataGrid1_BeforeUpdate (Cancel As Integer)
If DataGrid1.Columns(1).Value = "" Then
MsgBox "You must enter value in the first column!"
Cancel = True
End If
End Sub
-----------------


Regards,
Shurik.
Reply With Quote
  #3  
Old 12-06-2003, 04:19 PM
martim07 martim07 is offline
Newcomer
 
Join Date: Nov 2003
Posts: 3
Default

Yes, thank you. I just have no idea how it's supposed to be used, so this helps.
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

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
 
 
-->