Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 466
  • Last Modified:

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

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
yahooooo
Asked:
yahooooo
1 Solution
 
mbizupCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now