VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



SG DB Template

by Steve Grant (1 Submission)
Category: Databases/Data Access/DAO/ADO
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (41 Votes)

Example on how a template can drastically accelerate development time for a Database app.
With this template, you just have to drop the text controls you want on the form, modify their tag property (see file _Notes.txt) and modify the SQL string that the form uses to get data and voilĂ .
The code will take care of the MoveFirst, MovePrevious, NewRecord, MoveNext, MoveLast, SaveRecord, DeleteRecord, Undo, Requery, EditRecord and CloseForm. It will automatically enable/disable the controls based on what the user is doing and his location in the rescordset. There is even options (in the tag property) to set default values and field validation (alpha or numeric). Since it's the tag property that drives most of the features of the app, the code is very portable/reusable.
The template only uses UNBOUND forms (i.e. there is NO Data Control) and is well commented.

Rate SG DB Template

Download SG DB Template

Download SG DB Template (30 KB)

SG DB Template Comments

No comments have been posted about SG DB Template. Why not be the first to post a comment about SG DB Template.

Post your comment

Subject:
Message:
0/1000 characters