Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Adding & Editing Data

Posted on 1998-06-23
2
Medium Priority
?
131 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 60 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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

705 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