Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Database and Reporting > DAO Form example. Bullet proof data integrity.


Reply
 
Thread Tools Display Modes
  #1  
Old 07-14-2003, 06:34 PM
GT112 GT112 is offline
Regular
 
Join Date: Jun 2003
Location: Ireland
Posts: 68
Default DAO Form example. Bullet proof data integrity.


Good example included, please have a look...

On browsing the forum and the net, I see a lot of questions
relating to data integrity in a VB form.

It's an issue I come up against a lot myself - so here, I have attempted
to address some of the issues raised and provide a possible solution.

The form is designed around the DAO data reference.
It is an attempt to make a bullet proof data form in that . .

If the user changes the value in a field and then tries to
move to another record, or add a new record, or close the form or whatever . .
then the form will pick up the changes and ask if the user wants to save.

Its basically an attempt to make using DAO on forms safer for data integrity.

If anyone has any ways to improve this method, please post.

The find facility is a nice utility that I strung together from a mixture
of code from others and some of my own.

Clicking find will open a find form with a listview of all the records.
Click any header and the search bok at the top of the form becomes relevant to
the column that you clicked.
Enter a few characters in it and the listview will try to match and select
the first record it finds that matches your text.

Click on any column header to sort by that column no matter what the data type is.
This puppy will sort strings, dates, numbers, urls, yes/no, memo, ..whatever.
Click the columnheader again to sort in the reverse order.

Keys.
[Page Down] or [Arrow Down] = Move to next record
[Page Up] or [Arrow Up] = Move to previous record

[Ctrl & [Page Down] or [Arrow Down] = Move to Last record
[Ctrl & [Page Up] or [Arrow Up] = Move to First record

[End] = Move to Last record
[Home] = Move to First record

[Escape] = Close

[F2] = Find

Hope its useful to some

regards

GT

kieranstafford@utvinternet.com


Keywords:
Record changed
move to new record
detect record changed update updated
find record
listview
sort listview
using keyboard keys
DAO
Data object
Shellexecute
Attached Files
File Type: zip DAOForm.zip (27.9 KB, 30 views)
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
multi connections, one port? burningodzilla Communications 5 08-02-2005 05:04 PM
Fill a vba form with Excel workbook data, updating this wrkbook w/ data from the form Chatelain Excel 1 06-12-2003 08:29 AM
Data Entry Form question gmurrie Word, PowerPoint, Outlook, and Other Office Products 5 12-20-2002 01:21 PM
WinSock vbsupernewbie Communications 1 09-12-2001 10:20 PM
data form question please help Phox General 2 07-06-2001 03:09 PM

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