Solved

Adding & Editing Data

Posted on 1998-06-23
2
130 Views
Last Modified: 2010-05-03
I need to be able to add & edit data in an Access database using VB5.  Is there a "neat" way to do it.  I've found using bound controls is a little messy, though if anyone know a wa around it.
I've tried just using the recordset addnew and edit routines straight out of dataform wizard, but when other people use the program, it's gets a little messy if they hit the wrong button (the error "Tghis action was cancelled by another.....").
Any help would be appreciated.
 
0
Comment
Question by:nu2vb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
Dalin earned 20 total points
ID: 1464042
nu2vb,
The "neat" or "messy" is not due to the use of bounded controls. It is in how you program it.

When the user click "addnew" or "Edit", you can disable buttons other than "Cancel" or "Update", and only the user click on one of these, you can enable the other buttons in addition to the cancel or updating action.

Regards
Dalin
0
 

Author Comment

by:nu2vb
ID: 1464043
That sounds like a fair call.  I will try what you have suggested.  Looking back at it, it's quite simple yet I didn't even think of it!
Thanks for your help!

0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month8 days, 19 hours left to enroll

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question