Solved

Check if all fields in new row are filled (datasheet view)

Posted on 2013-07-01
1
453 Views
Last Modified: 2013-07-01
Hi there

I have a form with datasheet view and I need to make user that user fills in all fields before he moves on to the next row.
Any idea how to catch the moment of moving to another row?
0
Comment
Question by:yahooooo
1 Comment
 
LVL 61

Accepted Solution

by:
mbizup earned 500 total points
ID: 39290919
Use the Before Update event of your form.


Private Sub Before_Update(Cancel as Integer)
       if "" & Me.Field1 = ""  OR  "" & Me.Field2 = "" OR "" & Me.Field3 = ""  OR "" & Me.Field4 = "" then
               msgBox "Please enter data in all fields"
               Cancel = True
        end if
end sub

Open in new window

0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
unable to save new report from old one 9 28
Launch app from Access custom ribbon 8 33
User Level Security 6 38
How to use DLookup with IsNull Function 4 25
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

776 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