Solved

Adding & Editing Data

Posted on 1998-06-23
2
129 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How does CurrentUser work? 10 44
How to measure sizes and angles in scanned images ? 3 99
Child Form in front 4 66
add criteria to query in VB, Access 2003 2 49
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…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

739 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